Powershell set-mailuser -alias
Hi,I'd like to set mailusers' aliases from a CSV. The csv has two fields, name and alias, containing the name and the new alias. However when I run the command below all I get returned is ">>"import-csv "c:\migration\aliases\alias.csv|foreach {set-mailuser -id $_.name -alias $_.alias -verbose -whatif}Thanks
March 3rd, 2010 11:41pm
Oh duh, I forgot to close my import file in quotes.Thank you
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 11:46pm
Hi,
Try this
import-csv "c:\migration\aliases\alias.csv" |foreach {set-mailuser -id $_.name -alias $_.alias -verbose -whatif}
Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
March 3rd, 2010 11:47pm