{"id":4608,"date":"2026-11-24T11:00:33","date_gmt":"2026-11-24T16:00:33","guid":{"rendered":"https:\/\/increasec.com\/?p=4608"},"modified":"2026-11-24T11:00:33","modified_gmt":"2026-11-24T16:00:33","slug":"restoring-m-onedrive-for-a-deleted-user","status":"publish","type":"post","link":"https:\/\/increasec.com\/?p=4608","title":{"rendered":"Restoring M$ OneDrive for a deleted user"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Orphaned files are still retained for 93 days in a secondary Recycle Bin that is accessible only via PowerShell<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t move these files they will be deleted again in 30 days<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=35588\">https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=35588<\/a><br>DL install SharePoint Online Management Shell<br>Run as administrator<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Import-Module Microsoft.Online.Sharepoint.PowerShell -DisableNameChecking<br>Connect-SPOService -url &#8220;<a href=\"https:\/\/cf-admin.sharepoint.com\">https:\/\/cf<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">-admin<\/mark>.sharepoint.com<\/a>&#8220;<br>(the -admin is important, don&#8217;t forget to add it)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PS C:\\WINDOWS\\system32&gt; Get-SPODeletedSite -IncludeOnlyPersonalSite | Select-Object Url, DeletionTime, DaysRemaining<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Url DeletionTime DaysRemaining<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/jen_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/jen_cf_com<\/a> 2026-11-23 4:04:04 AM 90<br><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com<\/a> 2026-11-23 4:04:02 AM 90<br><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/pam_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/pam_cf_com<\/a> 2026-11-23 4:04:01 AM 90<br><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/anna_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/anna_cf_com<\/a> 2026-11-23 4:03:59 AM 90<br><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/ana_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/ana_cf_com<\/a> 2026-11-04 3:50:15 AM 71<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Restore-SPODeletedSite -Identity &#8220;<a href=\"https:\/\/cf-my.sharepoint.com\/personal\/anna_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/anna_cf_com<\/a>&#8220;<br>Wait 15min<br>Set-SPOUser -Site &#8220;<a href=\"https:\/\/cf-my.sharepoint.com\/personal\/andreyna_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/anna_cf_com<\/a>&#8221; -LoginName &#8220;<a href=\"mailto:msp@cf.onmicrosoft.com\">msp@cf.onmicrosoft.com<\/a>&#8221; -IsSiteCollectionAdmin $true<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Restore-SPODeletedSite -Identity &#8220;<a href=\"https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com<\/a>&#8220;<br>Wait 15min<br>Set-SPOUser -Site &#8220;<a href=\"https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com<\/a>&#8221; -LoginName &#8220;<a href=\"mailto:msp@cf.onmicrosoft.com\">msp@cf.onmicrosoft.com<\/a>&#8221; -IsSiteCollectionAdmin $true<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After waiting 20m you should be able to open the following in a browser<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/andreyna_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/anna_cf_com<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com\">https:\/\/cf-my.sharepoint.com\/personal\/scott_cf_com<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">also<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.sharepointdiary.com\/2018\/12\/install-update-uninstall-sharepoint-online-powershell-module.html\">https:\/\/www.sharepointdiary.com\/2018\/12\/install-update-uninstall-sharepoint-online-powershell-module.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Orphaned files are still retained for 93 days in a secondary Recycle Bin that is accessible only via PowerShell If you don&#8217;t move these files they will be deleted again&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81],"class_list":["post-4608","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-microsoft"],"_links":{"self":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/4608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4608"}],"version-history":[{"count":1,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/4608\/revisions"}],"predecessor-version":[{"id":4609,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/4608\/revisions\/4609"}],"wp:attachment":[{"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}