Reader small image

You're reading from  Microsoft Office 365 Administration Cookbook

Product typeBook
Published inSep 2020
PublisherPackt
ISBN-139781838551230
Edition1st Edition
Right arrow
Author (1)
Nate Chamberlain
Nate Chamberlain
author image
Nate Chamberlain

Nate Chamberlain is a technical content creator, solution architect, and trainer, recognized as a 5-year Microsoft MVP. With a background in business analysis and systems administration, Nate has authored seven books and manages his blog. He holds an array of certifications, including M365 Enterprise Administrator Expert and Microsoft Power Platform App Maker Associate, and is a frequent speaker at user groups and conferences.
Read more about Nate Chamberlain

Right arrow

Restoring a deleted OneDrive site

When a user is deleted from an Office 365 tenant, that user's OneDrive site is also deleted (depending on the retention policy set by the tenant admins). This recipe will explain how to recover that deleted OneDrive site.

Getting ready

Using the skills learned in the Setting up the PowerShell environment recipe in Chapter 1, Office 365 Setup and Basic Administration, and the Connecting via PowerShell to SharePoint Online recipe in this chapter, connect to your Office 365 tenant via PowerShell.

The admin restoring the OneDrive site must be assigned the Global admin or SharePoint admin role.

Finally, the admin must have the URL of the deleted OneDrive site. This can be found by checking the Deleted Sites recycle bin with the following code snippet:

Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url

You can verify you have the correct URL with the following code snippet:

Get-SPODeletedSite -Identity "https://natechamberlain...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Microsoft Office 365 Administration Cookbook
Published in: Sep 2020Publisher: PacktISBN-13: 9781838551230

Author (1)

author image
Nate Chamberlain

Nate Chamberlain is a technical content creator, solution architect, and trainer, recognized as a 5-year Microsoft MVP. With a background in business analysis and systems administration, Nate has authored seven books and manages his blog. He holds an array of certifications, including M365 Enterprise Administrator Expert and Microsoft Power Platform App Maker Associate, and is a frequent speaker at user groups and conferences.
Read more about Nate Chamberlain