Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell - Setting Display Name

$
0
0


Can anyone help, basically i want to be able to change a load of display names from a CSV which has 2 columns, username and display.

$detail = import-csv -header username, display \\files.domain.com\Exchange\TestHS.csv
$detail | Set-Mailbox -Identity $_.username -DisplayName $_.display

This isn't working, it may also be of use to bear in mind later in the same script i will be planning to change the accounts in the username section and for each running about 7 further commands to configure them as resource room accounts.

Any ideas?


Viewing all articles
Browse latest Browse all 15028

Trending Articles