Below is a quick script I need to run on our AD users. Everything seems to work except the otherHomePhone attribute since its a multivalue attribute. We currently only have one value in this attribute in every AD account. The output gets
put into a CSV file.
Get-ADUser -Filter {(ObjectClass -eq "user")} | Select-Object GivenName,Surname,SamAccountName,mail,otherHomePhone | Export-Csv -NoType "test.csv"
I get the following in the otherHomePhone column:
Microsoft.ActiveDirectory.Management.ADPropertyValueCollection |
http://techwithmike.com