當將數據轉換爲CSV時,Powershell是否支持使用自定義標頭名稱?我從Active Directory轉換用戶數據,並希望在標題中使用其他名稱而不是屬性名稱。Powershell ConvertTo-CSV自定義標頭
我的代碼:
$adusers | select givenName,sn,telephoneNumber,SamAccountName,physicalDeliveryOfficeName,Title,mobile | ConvertTo-Csv -Delimiter ';' | Out-File -FilePath $thefilepath
顯示你正在使用的代碼。 – manojlds