Find out Who has Deleted a Site Collection in SharePoint

Requirement: Find out who has deleted a site collection in SharePoint 2016. How to Find Who Deleted a SharePoint Site? Unfortunately, there are no direct ways to find out who deleted a SharePoint site. The PowerShell cmdlet “Get-SPDeletedSite” gets you all deleted site collections, without any hint about the user who deleted…

Read more

How to Make a Subsite Read-Only using PowerShell?

Requirement: Make a SharePoint Subsite read-only. This method replaces all other permissions applied on the subsite with “Read” and can’t be reverted! Make sure you are proceeding only in scenarios where you don’t need to revert the read-only (E.g. Post migration)! You can take backup of the existing permissions though. How to…

Read more

Migrate SharePoint 2010 Document Libraries to SharePoint Online using PowerShell

Requirement: Migrate Document Libraries from SharePoint 2010 to SharePoint Online. How to Migrate SharePoint 2010 Document Libraries to SharePoint Online? The idea is: Export all document libraries from SharePoint On-premises to local drive, export metadata of each document to a CSV file, and then import them to SharePoint Online. Before we begin,…

Read more

PowerShell to Update Permissions for Custom Permission Level in SharePoint

Requirement: Update permission level in SharePoint using PowerShell How to Edit a Permission level in SharePoint? To edit an existing permission level in SharePoint, follow these steps: Permission levels are scoped at site collection. So, Navigate to the SharePoint site collection where you want the permission level to be edited. Click on…

Read more

How to Delete Drop Off Library in SharePoint 2016?

Problem:When the content organizer feature is enabled, it creates a “Drop Off Library” document library in your SharePoint site. But disabling the feature does not remove the library! Also, you can’t simply delete “Drop Off Library” because the “Delete this document library” link is not available when you go to “Library Settings”….

Read more

How to Make a SharePoint List or Library to Read Only Mode using PowerShell?

Requirement: Set SharePoint list or document library to read only mode. How to make SharePoint List to Read Only? There is no direct way to set the SharePoint list to read-only! The read-only mode can be set only on SharePoint site collections (How to Make a Site Collection Read-Only) or on content…

Read more

How to Get SharePoint Farm Account Password using PowerShell?

Requirement: Had to take over a SharePoint Farm, and we don’t have the Farm Account Password! We needed the credentials of the SharePoint Farm account. Get SharePoint Farm Account Password: SharePoint farm account user name and password can be retrieved with this little trick: Central Admin site uses SharePoint Farm account, So,…

Read more

PowerShell to Manage Files Which Have No Checked in Version in SharePoint

Requirement:  PowerShell to Manage files which have no checked in version in SharePoint. How to Manage files which have no checked-in version in SharePoint 2016? When a file is uploaded through explorer view or multiple file upload – without supplying mandatory column values or when you have “Require Check out” option set…

Read more