Create New User
From KlavoWiki
Jump to navigationJump to search
$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