1. Open PowerShell with Admin privileges
2. Type in following:
Connect-SPOService -url https://kennedycapital-admin.sharepoint.com
If an error occurs then please download and install SharePoint Online Management shell from this URL: Download SharePoint Online Management Shell from Official Microsoft Download Center
3. Get list of all users Personal Site and its Owners
Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/'" | Select Url, Owner | fl
4, You can Filter it with specific user as well, here is command:
Get-SPOSite -IncludePersonalSite $true -Limit all -Filter "Url -like '-my.sharepoint.com/personal/' -and Owner -like 'salman'" | Select Url, Owner | fl
4. It should give you the list of users' OneDrive who has salman in it as Owner.
Reference:
Ticket #8878
Get a list of all user OneDrive URLs in your organization - OneDrive | Microsoft Docs
Remove-SPOUser (SharePointOnlinePowerShell) | Microsoft Docs
SharePoint Online: How to Change Site Owner using PowerShell? - SharePoint Diary
Comments
0 comments
Please sign in to leave a comment.