Exchange user creation from CSV file
Hello, I am using Exchange 2007 and got an error when running the below shell command. Could you please help me out?? Shell command: [PS] C:\>import-csv "C:\Scripts\AUTO_UPDATE\EXCHANGE.csv" | foreach {enable-MailBox -identity $_.i dentity -PrimarySmtpAddress $_.PrimarySmtpAddress -Database $_.Database} Error Message: Enable-Mailbox : Cannot bind argument to parameter 'Database' because it is null. At line:1 char:149 + import-csv "C:\Scripts\AUTO_UPDATE\EXCHANGE.csv" | foreach {enable-MailBox -identity $_.identity -PrimarySmtpAddress $_.Primary SmtpAddress -Database <<<< $_.Database} CSV file content: Identity,PrimarySmtpAddress,datadase "company.intra/User Test Exchange/Test Fusion/Un Known","Un.Known@company.com","tlxxxx01\GG08\COMPANY 008" In fact, Users are already created in the Active Directory and a csv file will be copy to a specific path (C:\Scripts\AUTO_UPDATE). I then wish to be able to create mailboxes in order to schedule my ps1. Thanks in advance, Graig
July 8th, 2010 1:42pm

Hi , See the last post of this thread I hope you will get done. http://pscx.codeplex.com/Thread/View.aspx?ThreadId=14621 Also for reference http://www.techtalkz.com/microsoft-windows-powershell/509238-problems-script.html Regards. Shafaquat Ali.M.C.I.T.P Exchange 2007/2010, M.C.I.T.P Windows Server 2008, M.C.T.S OCS Server 2007 R2
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2010 1:46pm

Hi, Identity,PrimarySmtpAddress,datadase Is this mistake or u really put "datadase" in the header of CSV file instead of "database"? Plz correct this and then check. Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
July 8th, 2010 1:50pm

Mannnnnnnnnnnnnn... Sorry about that!! I have spotten that.. Thanks a lot!
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2010 2:06pm

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

Other recent topics Other recent topics