• Login
  • Register

Community Dashboard

Our community dashboard tracks activity and engagement from community members across a wide variety of sources, including, the DNN forum, Twitter, GitHub, StackOverflow, etc.
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Nov 2021 12:53 AM by  SuperUser Account
Remove Users From the Office 365 Cloud
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages


New Member


Posts:15
New Member


--
30 Nov 2021 12:53 AM
    Connect to Exchange Online using the Windows Azure Powershell module.
    For additional information on how to connect to Exchange Online using Powershell please click here.

    Remove One User From the Cloud:
    remove-msoluser –userprincipalname UID@UPN.com

    Remove One User From the Recycle Bin:
    remove-msoluser –userprincipalname UID@UPN.com -RemoveFromRecyclebin

    Remove All the Users From the Cloud:
    get-msoluser | remove-msoluser -force

    Remove All the Users From the Recycle Bin:
    get-msoluser –returndeletedusers -maxresults 100000 | remove-msoluser -removefromrecyclebin -force

    Remove All the Users With an Unlimited Count:
    get-msoluser -maxresults unlimited | remove-msoluser –force
    You are not authorized to post a reply.