I'm looking to export our student accounts to a .CSV file with a specific format that I can then import into ZenDesk. I've attached a sample .CSV file. I can export "name", "email", and "tags" from various fields in AD, but I'm running into trouble with the others. I need to have "role" and "organization" be the same value for all records, and have all the other fields (which are required for the import to work properly) blank.
I'm stuck. I adapted a similar export script I used to get staff data out for another export, but I needed all of those fields to have data from AD. Script I'm using:
Powershell
Import-ModuleactivedirectoryGet-ADUser-SearchBase"OU=Students,OU=OC-Users,DC=doman,DC=edu"-Filter{Enabled-eq$true}-Propertiesdescription,employeeid|Where{$_.EmployeeID-ne$null}|Select-Object@{Label="name";Expression={...