bulk update mailnickname to match samaccountname. csv file format samename,nickname
Import-Csv “c:\script\users.csv” | % {Get-ADUser -Identity $_.Samaccount -Properties MailNickName | Set-ADUser -Replace @{MailNickName = “$($_.NickName)”}}
bulk update hidefromaddresslist
Import-Csv “c:\script\users.csv” |ForEach-Object {Get-ADUser -identity $_.SamAccount |Set-Aduser -replace @{msexchhidefromaddresslists=”TRUE”}}