Exchange 2007 - Import-Csv Help!
Alright i was trying to use the import csv.I can create user from cmd but it keeps on creating on the root domain. I want to create users in sub domain. i.e. on eg.example.com not on example.comBut i have 2 sub domains and thats where i wana create the bulk users.When i give-OrganizationalUnit eg.example.com/test it keeps on telling me to check the spelling. However, i tested location and spelling also by doing this :-get-user -OrganizationalUnit eg.example.com/testBtw i have change my domain to eg.example.com for this example.Import-Csv recipients.csv | foreach { New-Mailbox alias $_.Alias name $_.Name UserPrincipalName $_.UPN Database example OrganizationalUnit eg.example.com/test Password $Password ResetPasswordOnNextLogon:$falsehere is what im running and csv is there as well. anyone can help me out?
March 5th, 2009 2:46pm
Hi,Can you post exact error message?Additionally change the recipient scope in EMS to sub domain and check. You may get this if you have logged into any computer or with user of root domain and in that case default scope is only example.com domain but your OU is in child domain.How to Change the Recipient Scopehttp://technet.microsoft.com/en-us/library/bb124791.aspxCreate a test mailbox in OrganizationlUnit with quote and check where it gets created...New-Mailbox alias testuser name "Test, User" UserPrincipalName testuser Database example OrganizationalUnit "eg.example.com/test" Password testuserpass ResetPasswordOnNextLogon:$falseAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 5th, 2009 5:03pm