From db707e187c55f43647a969cd0613149d8262e262 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Wed, 20 May 2026 21:58:49 -0600 Subject: [PATCH] Add deployments/services/Microsoft 365/Seize Control of Personal OneDrive Data.md --- ...Seize Control of Personal OneDrive Data.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 deployments/services/Microsoft 365/Seize Control of Personal OneDrive Data.md diff --git a/deployments/services/Microsoft 365/Seize Control of Personal OneDrive Data.md b/deployments/services/Microsoft 365/Seize Control of Personal OneDrive Data.md new file mode 100644 index 0000000..62c53f6 --- /dev/null +++ b/deployments/services/Microsoft 365/Seize Control of Personal OneDrive Data.md @@ -0,0 +1,31 @@ +## Purpose +You may find that you need to access data from a user's personal OneDrive account, and since that data cannot be accessed directly via Office365's Admin Portal, you have to do some legwork in Powershell. + +### Connect to Sharepoint +```powershell +Install-Module Microsoft.Online.SharePoint.PowerShell +Import-Module Microsoft.Online.SharePoint.PowerShell +Connect-SPOService -Url https://-admin.sharepoint.com # Login with your Office365 Admin Credentials when Prompted +``` + +### Display List of Personal Sharepoint Sites (OneDrive) +```powershell +Get-SPOSite -IncludePersonalSite $true -Limit All +``` + +### Check OneDrive Usage of the Given User +```powershell +Get-SPOSite -Identity "https://-my.sharepoint.com/personal/username_companyname_com" | Select Url, Owner, StorageUsageCurrent, StorageQuota, LastContentModifiedDate +``` + +### Assign Yourself Permissions to Their OneDrive +```powershell +Set-SPOUser ` +-Site "https://eaglesafetyak-my.sharepoint.com/personal/username_companyname_com" ` +-LoginName "i:0#.f|membership|admin@companyname.com" ` +-IsSiteCollectionAdmin $true +``` + +### Navigate to Webpage +At this point, you now have permissions to access the OneDrive data, so open a web browser and navigate to the SPOSite URL seen previously, seen below. From here, you can download, upload, and manage the data however you need. +- `https://-my.sharepoint.com/personal/username_companyname_com` \ No newline at end of file