Create New User: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Created page with "[http://technet.microsoft.com/en-us/library/aa997663.aspx Microsoft TechNet New-Mailbox] <pre> $password = Read-Host "Enter password" -AsSecureString New-Mailbox -Name 'Last In..." |
No edit summary |
||
Line 4: | Line 4: | ||
$password = Read-Host "Enter password" -AsSecureString | $password = Read-Host "Enter password" -AsSecureString | ||
New-Mailbox -Name 'Last Initial. First' -Alias 'Alias' -OrganizationalUnit ' | New-Mailbox -Name 'Last Initial. First' -Alias 'Alias' -OrganizationalUnit 'mydomain.com/Asia Pacific/Australia/Brisbane/Users' -UserPrincipalName 'Alias@mydomain.com' -SamAccountName 'Alias' -FirstName 'First' -Initials 'Initial' -LastName 'Last' -Password $password -ResetPasswordOnNextLogon $true | ||
</pre> | </pre> | ||
[[Category: Exchange PowerShell]] | [[Category: Exchange PowerShell]] |
Latest revision as of 02:50, 1 November 2015
$password = Read-Host "Enter password" -AsSecureString New-Mailbox -Name 'Last Initial. First' -Alias 'Alias' -OrganizationalUnit 'mydomain.com/Asia Pacific/Australia/Brisbane/Users' -UserPrincipalName 'Alias@mydomain.com' -SamAccountName 'Alias' -FirstName 'First' -Initials 'Initial' -LastName 'Last' -Password $password -ResetPasswordOnNextLogon $true