Cannot Enable Mail Users
Im trying to enable Mail users in bulk but keep getting the following error " A parameter cannot be found that matches parameter name '-' at line :1 char:50The csv file is layed out as followsDisplayName,EmailAddressrichard Nixon,r.s.nixon@hoot.comand the command im using isImport-Csv parents.csv | ForEach {Enable-MailUser Identity $_.DisplayName ExternalEmailAddress $_. EMailAddress}I cant see any mistakes, so any help would be great.thanks...
December 17th, 2009 6:08pm

Can you add the path of the parents.csv? Import-Csv “X:\parents.csv” | ForEach {Enable-MailUser –Identity $_.DisplayName – ExternalEmailAddress $_. EMailAddress}James Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
Free Windows Admin Tool Kit Click here and download it now
December 18th, 2009 5:46am

If you mean, can i import the csv file, then yes i can. I can import it and see it's contents, it's just i get the error about paramete not found. It looks like the error is pointing the the displayname, but cant see anything wrong with the csv file. I exported the users from AD so i could mail enable them. The extact csv file worked for creating a contacts list. So not sure what's up.thanks,.. here's a link to a screenshothttp://s559.photobucket.com/albums/ss36/drgodburp/
December 18th, 2009 12:42pm

Everything looks good, but I suggest using the -Process parameter between the ForEach statement and {
Free Windows Admin Tool Kit Click here and download it now
December 19th, 2009 8:42pm

Please create a new CSV file for testing, add one or two rows of DisplayName and Email into it, see if the issue still persists Please also check the application log after the error outputJames Luo TechNet Subscriber Support (http://technet.microsoft.com/en-us/subscriptions/ms788697.aspx) If you have any feedback on our support, please contact tngfb@microsoft.com
December 21st, 2009 5:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics