Summary: Learn how to use PowerShell to remove a corporate user from all site collections in SharePoint Online.
How can I use Windows PowerShell to quickly remove a corporate user from all site collections in SharePoint Online?
Use the following commands (change the login user name as required):
Get-SPOSite | ForEach-object{Remove-SPOUser -Site $_.Url -LoginName kmyer@contoso.com}
0 comments