Thursday, January 24, 2013

New User Creation (Exchange 2010) Powershell

New-Mailbox -UserPrincipalName  xxxxx@mmx.com -Alias xxx_xxx -Database 'Sales & Marketing' -Name 'xxx xxx'  -OrganizationalUnit xxx -Password (ConvertTo-SecureString -AsPlainText Pa55w0rd -Force) -FirstName 'xxx xxx' -LastName  -DisplayName 'xxx'

Get-Mailbox 'xxx' | fl MaxSendSize,MaxReceiveSize

Set-Mailbox 'xxx' -MaxSendSize 30Mb -MaxReceiveSize 30Mb

Set-Mailbox –Identity 'xxx' -IssueWarningQuota ‘1.5GB’

Set-Mailbox –Identity 'xxx' –ProhibitSendQuota '1.7GB'

Set-Mailbox –Identity 'xxx' -ProhibitSendReceiveQuota '2GB'

Set-CASMailbox 'xxx' -ActiveSyncEnabled:$false -OWAEnabled:$true -PopEnabled:$true -ImapEnabled:$false -MapiEnabled:$true

Test-Mailflow -TargetEmailAddress 'xxxxx@mmx.com'

Reset Default Mailbox Database Quota
Set-Mailbox –Identity -UseDatabaseQuotaDefaults $true

No comments: