Today I am providing the Power Shell Script that will fire the lock state selected during execution on the given site collection.
Inputs
Site Collection - Url Where you want to apply the Lock State.
Lock State - The state that you want to set for the above url.
Outputs
This script will fire the lock state selected during execution on the given site collection.
Example-
.\scriptname.ps1
.\scriptname.ps1 | out-file “FilePath\Filename.txt”
Dependencies -
For executing this script user must be added in site collection administrators given site.
User should have Shell Admin rights to run the scripts.For executing this script user must be added in site collection administrators given site.
Run Management Shell as an Administrator.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell.
Follow on screen instructions.
How to execute -
Copy this script and paste in Note pad.
Save this file as .ps1.
Run this script in SharePoint Management Shell.
Follow on screen instructions.
FOR ANY HELP ON THIS SCRIPT USE "GET-HELP .\SCRIPTNAME.PS1 --FULL" AFTER SAVING THIS FILE.
Go to above link to get the script.
No comments:
Post a Comment