New Users Script
i am creating users through a script to create new users. tested it in my test environment and works perfect. (its exchange 2007 sp1)== CreateNewUser.ps1 located in PSHome Subdirectory ==Param([string] $MailboxTemplate[string] $CSVFile)$Temp = CovertTo-SecureString XXXXX -asPlainText -Force$Template = Get-Mailbox "$MailboxTemplate"Import-CSV $CSVFile | Foreach-Object -Process {New-Mailbox -Name $_.Name -Alias $_.Alias -OrganizationUnit $_.OU -UserPrincipleName $_.UPN -SamAccountName $_.SAMAcc -FirstName $_.FN -Initials $_.Initials -LastName $_.LN -ResetPassworOnLogon $_.ResetPW -Database $_.DB -Password $Temp -TemplateInstance $Template}Created CSV file with list of users.When i try to execute this script on EMS, it basically does nothing. No errors or no execution. It gives me a prompt like shown below and does nothing.______[PS] C:\Documents and Settings\admin>CreateNewUser.ps1 -MailboxTemplate "_Template" -CSVFile "C:\NewUser.csv>>_____The user "admin" is part of Ex. Org. Administrator group and its also a part of Domain/Ent/Schema Admin group.I am not able to understand what could be wrong.- regard, raj
February 22nd, 2009 10:32am

In your CSV file, is the DB column specified with "server\storage group\DB" or is it just "DB"? If you specify only the DB name you must run this script locally on the mailbox server where the DB reside. lasse at humandata dot se, http://anewmessagehasarrived.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2009 8:42pm

hi,i m running this script locally on that server and i have specified the DB details as "server\stroagegroup\databasename"- thx, raj
February 23rd, 2009 10:20am

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

Other recent topics Other recent topics