Friday 31 August 2012

Create User Through Script

Import-CSV "c:\create.csv" | ForEach-Object { New-Mailbox -Lastname $_.”LastName” -Name $_."Name" -FirstName $_.”FirstName” -Database "DB3" -UserPrincipalName $_.”UserPrincipalName” -Password (ConvertTo-SecureString $_.password -AsPlainText -Force)}

FirstName

LastName

Name

UserPrincipalName

Password

PrimaryEmailAddress

SecondryEmailAddress

RakeshKumarRakesh KumarRakeshK@corp.mldP@ssword123RakeshK@corp.mldRakeshK@ggncloud.corp.mld

No comments:

Post a Comment