solshare.net
Sign in or Join. Username:   Password:   (forgot password?)     Submit

Education

Reset a password using PowerShell

A couple of customers have asked me about this one in the last few hours.  A currently undocumented ability with Remote PowerShell and Exchange Labs/LiveID is the ability to reset a password.
 
The command is simply:
set-mailbox -identity user@example.edu -password pass1234
 
In context of everything you need to do to get this running for all you PowerShell newbies out there:

:Connect to Exchange Labs Runspace
1. $LiveCred = Get-Credential
2. $rs = New-Runspace -Shell Microsoft.Exchange -ConnectionUri
https://ps.exchangelabs.com/powershell/ -Credential $LiveCred  -Authentication Basic
3. push-runspace $rs

:Reset the password
4. set-mailbox -identity user@example.edu -password pass1234 

:Gracefully exit runspace
5. pop-runspace
6. Remove-Runspace $rs

Happy scripting!

Jonny

Published Tuesday, November 04, 2008 4:49 PM by Live@Edu Blog
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit
SSN Program Home | Terms of Use | Privacy Statement
© Copyright 2008 Microsoft Corporation. All rights reserved.