Create New User

From KlavoWiki
Revision as of 02:50, 1 November 2015 by David (Sọ̀rọ̀ | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Microsoft TechNet New-Mailbox

$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