SharePoint Online: How to Recover Deleted Files from Preservation Hold Library?

Requirement: Restore deleted files from the Preservation Hold Library. SharePoint Online: How to Recover Deleted Items from Preservation Hold Library? The Preservation Hold Library in SharePoint Online and OneDrive preserves files that are edited or deleted to ensure there is no loss of data through accidental or willful deletion or editing of…

Read more

How to Create a Retention Policy to Preserve Deleted Items in SharePoint Online?

Requirement: Create a retention policy to preserve deleted items in SharePoint Online. How to create a Retention Policy for SharePoint Online? SharePoint Online retains deleted items for 93 days before they get deleted permanently. What if you want to preserve deleted items for more than 93 days? Say, for 10 years as…

Read more

How to Restore OneDrive For Business Site from Recycle Bin?

Requirement: Restore a Deleted OneDrive Site How to restore an OneDrive for Business Site using PowerShell? When you remove a user from Office 365, his OneDrive is retained for 30 days, and then it’s deleted. When an OneDrive site for an Office 365 user is deleted, it is moved to the tenant…

Read more

How to Backup-Restore a Site Collection in SharePoint using PowerShell?

Requirement: Backup and restore a site collection in SharePoint 2016 using PowerShell. How to backup a site collection in SharePoint 2016 using PowerShell? Although you can backup site collections from SharePoint Central Administration, as in  How to Backup SharePoint Site Collection using Central Admin, the Central admin way is kind of clunky…

Read more

Backup SharePoint Site Collection using Central Admin

Requirement: Backup a SharePoint Site Collection using Central Administration Backup Site Collection in SharePoint 2016 Central Admin Site collections can be backed up using SharePoint 2016 Central Administration. To backup a  site collection using Central Administration, follow these steps: Login to SharePoint Central Administration Site >> Click on the “Backup and Restore”…

Read more

Backup-Restore All SharePoint Databases in SQL Server using PowerShell

Requirement: We planned to move our SharePoint’s SQL database to a different server. So, we had to backup and restore all SharePoint databases from one SQL Server 2012 instance to another. How to Backup and Restore All SharePoint Databases from SQL Server using PowerShell? Here are the steps at high level to…

Read more

How to Restore Previous Document Version in SharePoint 2016 using PowerShell?

Version history feature in SharePoint enables us to track changes and revert to old versions when turned ON. Any changes made in SharePoint online list item or document, creates new version. There are scenarios you could run into, where you have to roll back to an older version of document. All you…

Read more

Export and Import Subsite in SharePoint 2013 using PowerShell

Export-Import subsite using PowerShell in SharePoint 2013 How to export SharePoint subsite? Export subsite SharePoint 2013 PowerShell, Unlike SharePoint 2013, you’ll have to create a subsite first and then import. Export-SPWeb cmdlet used to export a subsite, list, or document library. Open SharePoint 2013 Management Shell and run this command. Change Site…

Read more

Restore-SPSite Error: 0x80070003 on Backup-Restore SharePoint Site Collection Between Different Farms

When I was trying to backup restore between SharePoint DEV and QA Farms got this error message: Restore-SPSite : <nativehr>0x80070003</nativehr><nativestack></nativestack> Root Cause: The source and target SharePoint Farm’s build version mismatch! Solution: Upgrade either the source or destination SharePoint farm and then backup-restore. Backdoor way:What if you don’t have the option of…

Read more

Export-Import All Lists and Libraries from One Site to Another using PowerShell

The requirement is to copy and paste all SharePoint lists and libraries from one site to another. While “Save List as a Template” is one approach, it doesn’t work for larger lists, and it is time-consuming. Using the Central Administration export method also kills my time. Solution: We can copy and paste…

Read more