Creating Bulk Users in Exchange 2010 using Exchange Management shell not working
Hi i have used Exchange Management shell for creating bulk users in exchnage 2007 and it worked perfectly. now i wanted to create bulk users in exchange 2010 SP1 with the same commands but error comes templateinstance not found. i used CSV file that contains Name,FirstName,LastName,OU,UPN,Alias in Exchange 2007 and i also use the same format in Exchange 2010 SP1 i created one user tempalte101 in exchange 2007 $Template=Get-Mailbox template101 $Temp=ConvertTo-Securestring 12345678 -AsplainText -Force Import-CSV C:\users.csv | ForEach-Object -Process {New-Mailbox -Name $_.Name -FirstName $_.FirstName -LastName $_.LastName -OrganizationalUnit $_.OU -UserPrincipalName $_.UPN -Alias $_.alias -Database "Name of database" -Password $Temp -TemplateInstance $Template} The above command works perfectly in exchange 2007 when i run these commands in exchange 2010 with anothet CSV file and user template102 with same format it shows error that templateinstance command not found. I create users directly in Exchange it does not exist in Active Directory it works in exchange 2007. Regards, Devang Patel
June 29th, 2011 5:22am

Hi, The TemplateInstance parameter is not supported in Exchange 2010. You may use any one as follows: Import-CSV C:\users.csv | ForEach-Object -Process {New-Mailbox -Name $_.Name -FirstName $_.FirstName -LastName $_.LastName -OrganizationalUnit $_.OU -UserPrincipalName $_.UPN -Alias $_.alias -Database "Name of database" -Password $Password} Import-CSV C:\users.csv | ForEach-Object -Process {New-Mailbox -Name $_.Name -FirstName $_.FirstName -LastName $_.LastName -OrganizationalUnit $_.OU -UserPrincipalName $_.UPN -Alias $_.alias -Database "Name of database" -Password (ConvertTo-SecureString $_.password -AsPlainText -Force)} Regards from www.windowsadmin.info
Free Windows Admin Tool Kit Click here and download it now
June 29th, 2011 7:48am

Hi I have entered below commands with CSV file as below Name,Fname,Lname,OU,UPN,Alias,Department Rocky Patel,Rocky,Ppgp11,xxxx/xxxx/xxxx/xxxx/btech07,rocky.ppgp11@xxx.xx.xx,Rockyppgp11,Student [PS] C:\Windows\system32>$Temp=ConvertTo-Securestring 12345678 -AsPlainText -Force [PS] C:\Windows\system32>Import-Csv C:\rocky.csv | ForEach-Object -Process {New-Mailbox -Name $_.Name -FirstName $_.Fnam e -LastName $_.Lname -OrganizationalUnit $_.OU -UserPrincipalName $_.UPN -Alias $_.Alias -Database "Database Name" -Passw ord $Temp} | Set-User -Department $_.department [PS] C:\Windows\system32> The Command runs successfully but it doesnt show user rocky in btech07 OU in Active Directory. xxxx i have not mentioned because it is our domain details. Regards, Devang Patel
June 30th, 2011 1:41am

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

Other recent topics Other recent topics