C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
PowerShell Script To Make Multiple Sites Mention In Text File To Read Only
WhatsApp
Saurav Kumar
5y
6
k
0
1
25
Blog
ChangeSiteLockToReadOnly.zip
The script can be used to change the lockstate of multiple sites mention in text file to read only. All the site collection Urls should be mentioned in Sites.txt file and the script should be run. It would generate an output file with site url and their current lockstate.
Please download the Zip file and Update the sites.txt file with site collection urls whose state needs to be changed to ReadOnly.
Run the LockSites.ps1 file and it would generate an output file in the same folder where script is kept.
Thank you.
SharePoint
People also reading
Membership not found