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?