Saturday 5 November 2016

Enable/Disable Delete and Save List/Library as template option


Today I am providing the Power Shell Script that will enable or disable Delete and Save list/library as template on the given List/Library.

Inputs
Site URL - Url of the site that where you want to perform task
List - Where you want to perform the operation.
Option - Provide E for enable and D for disable the Save site as template.

Outputs
Delete and Save list/library as template on the given List/Library will be enabled or disabled on the bases of given inputs.

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.
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.

FOR ANY HELP ON THIS SCRIPT USE "GET-HELP .\SCRIPTNAME.PS1 --FULL" AFTER SAVING THIS FILE.
https://drive.google.com/file/d/0BznVpoE_ln0AODZ0RVJiNkxGY3M/view?usp=sharing
Go to above link to get the script.
 Used when Delete option or Save List as template or Save Library as Template is not visible in a List or Library.

No comments:

Post a Comment