Monday, 10 February 2014

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