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:
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