When a backup job is running or a patch installation on the SharePoint server there is a possibility of getting site collection getting locked due to backup job failure or for some other reason.
When the users try to update anything it throws an error which will result in raising a ticket. This all can be avoided by using power shell and scheduler.
Lock is applied at a site collection level. The above script will check the different lock on the site collection and remove it. Send a mail to the admin that the lock is removed. The list of webapplication is taken from a CSV file.
Hope this is helpful..
When the users try to update anything it throws an error which will result in raising a ticket. This all can be avoided by using power shell and scheduler.
![]() |
Powershell for removing the lock on the site collection. |
Lock is applied at a site collection level. The above script will check the different lock on the site collection and remove it. Send a mail to the admin that the lock is removed. The list of webapplication is taken from a CSV file.
Hope this is helpful..
Comments
Post a Comment