
This article describes how to use Group Policy settings and registry modification to block access to OneDrive from within the Office applications. When you install Microsoft Office 2016, the OneDrive sync client (OneDrive.exe) is included in the installation package. Visit the links below to download Office 365. OneDrive comes with Office Online, so you can create, edit, and share your work regardless of the type of device you or your group is working on. If you don’t want to deal with OneDrive in the Office 365 apps and prefer to save everything to your PC, then you can follow these steps below. More informationĪlso see OneDrive retention and deletion.How to turn saves files locally in Office 365 Permanently delete a OneDriveĪfter you recover the data you need from the OneDrive, we recommend that you permanently delete the OneDrive by running the following command:ĬAUTION: When you permanently delete a OneDrive, you will not be able to restore it. Set-SPOUser -Site -LoginName -IsSiteCollectionAdmin $Trueįor more info about these cmdlets, see Get-SPODeletedSite and Restore-SPODeletedSite. If the OneDrive appears in the results, it can be restored.Īssign a site collection administrator to the OneDrive to access the needed data: Get-SPODeletedSite -IncludeOnlyPersonalSite | FT url If you don't know the URL of the deleted OneDrive, run the following command: If you know the URL of the OneDrive, run the following command: To learn how, see Getting started with SharePoint Online Management Shell.ĭetermine if the OneDrive is available for restore. If you deleted the user more than 30 days ago, the user will no longer appear in the Microsoft 365 admin center, and you'll need to use PowerShell to restore the OneDrive.ĭownload the latest SharePoint Online Management Shell.Ĭonnect to SharePoint Online as a global admin or SharePoint admin in Microsoft 365. To learn how, see Restore a user in Microsoft 365. If the user was deleted within 30 days, you can restore the user and all their data from the Microsoft 365 admin center. Restore a deleted OneDrive when the deleted user no longer appears in the Microsoft 365 admin center At the end of the time, the OneDrive will be in a deleted state for 93 days and can only be restored by a global or SharePoint admin. During this time, shared content can still be accessed by other users.

(For more information, see Set the default file retention for deleted OneDrive users.) The default is 30 days. When you delete a user in the Microsoft 365 admin center (or when a user is removed through Active Directory synchronization), the user's OneDrive will be retained for the number of days you specify in the OneDrive admin center. SharePoint in Microsoft 365 Office for business More.
