I must be slightly better at Google than my friend. I found these:
https://technet.microsoft.com/en-us/library/hh974317.aspx https://technet.microsoft.com/en-us/library/dn568031.aspx https://technet.microsoft.com/en-us/library/dn568015.aspx I was able to use the last one to connect to my little O365 account and do get-command -module msonline and figured out he needed to do: Remove-Msoluser -Userprincipalname <user ID> -RemoveFromRecyclebin I hope I didn't waste anyone's time on this. Thanks Webster From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Webster Sent: Thursday, February 05, 2015 7:36 AM To: powershell@lists.myitforum.com Subject: [powershell] Office 365 and PowerShell I got this request from a friend this morning. Since I have never worked with Azure AD or an enterprise on Office 365, I thought I would forward his request to this list. <quote> I'm wondering if you can help me with powershell and connecting to O365. Our environment is a hybrid setup with on-prem AD and a dirsync server. Mailboxes were created on-prem and then migrated to O365. Our on-prem Exchange environment has been shut down with 1 CAS server remaining temporarily until we can move SMTP services elsewhere. We have a few users that are sitting in the O365 deleted users folders that are holding onto SMTP addresses that need to be assigned to other accounts. I'm looking for step by step instructions for connecting via powershell to O365, loading the correct cmdlts, and deleting these accounts. I have found plenty of articles and commands out there on google but they are all outdated and use "MSONLINE" which I don't think is correct anymore (at least I couldn't get it to work). Can you help? </quote> I would appreciate any help you could offer my friend. Thanks Webster ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1