Sunday, 30 June 2013

How to Hide a Mailbox from Address List

To hide a mailbox from Address List, use the below shell command
Set-Mailbox -Identity "Mailbox Name" -HideFromAddressListsEnabled $True
To disable the Hide from Address List option
Set-Mailbox -Identity "Mailbox Name" -HideFromAddressListsEnabled $False

Saturday, 29 June 2013

How to change the Mailbox Password using shell command

To set a new password for a Mailbox
Set-Mailbox -Identity "Mailbox Name" -Password (ConvertTo-SecureString -String "NewPassword" -AsPlainText -Force)
and to reset the password on next logon
Set-Mailbox -Identity "Mailbox Name" -Password (ConvertTo-SecureString -String "NewPassword" -AsPlainText -Force) -ResetPasswordOnNextLogon $True

How to quickly view the Max Send and Receive Size of a Mailbox

Use the below shell command to quickly view the Max Send and Receive Size limits of a Mailbox
Get-Mailbox -Identity "Mailbox Name" | FL Name, Max*

How to Set Mailbox Size Limits using Shell Command

Setting Mailbox Size limits using Shell commands is a quick steps which you can do that by using the below shell command
Set-Mailbox -Identity "Mailbox Name" -UseDatabaseQuotaDefaults $false -IssueWarningQuota 102400 -ProhibitSendQuota 104800 -ProhitSendReceiveQuota  204800
Values entered above as a limit is in KB

You can use this shell command in Exchange Server 2010/2013 and Office 365

View Mailbox Quota Limit settings using Shell Command

Use the below shell command to view the Mailbox Quota limit settings
Get-Mailbox -Identity "Mailbox Name" | Fl Name, UseDatabaseQuotaDefaults
If the UseDatabaseQuotaDefaults parameter is set to True then the Mailbox limits settings are inherited from the Database level settings, if it is set to false the use the below the shell command to find the quotas
Get-Mailbox -Identity "Mailbox Name" | Fl Name, UseDatabaseQuotaDefaults, ProhibitSendQuota, ProhibitSendReceiveQuota, IssueWarningQuota
Above Commands can be used in Exchange 2010 Exchange Server 2013 and Office 365