Can set-aduser only set one attribute at a time?

I am trying to set several AD attributes based on a CSV. it works when I do a single attribute but not multiple not even with -replace. Do I have to do one attribute at a time?

#Add AD details Foreach ($Mailbox in $UsersCSV) { Set-AdUser -Identity $Mailbox.ShortUser -Title $Mailbox.Title, -Department $Mailbox.Department, -Company $Mailbox.Company, -Manager $Mailbox.Manager, -StreetAddress $Mailbox.StreetAddress, -City $Mailbox.City, -State $Mailbox.State, -Country $Mailbox.Country } 

submitted by /u/solidstatestuart
[link] [comments]

Leave a Reply