I am sharing a script to Upload Master Pages & Page Layouts to Master Page Gallery using PowerShell script. This script will allow users to upload files (Master pages and page layouts) on to Published/non published SharePoint sites. Download the script from here.
Steps to execute script
1- Download the .zip file from here
2- Edit the “UploadMasterPages.bat” file and Change the <<site collection url>> in the text below with respect to the environment. e.g. http://sitecollectionurl
3- Save the “UploadMasterPages.bat” file and close it.
4- Put all of your master pages and page layouts to Doc folder.
5- Run “UploadMasterPages.bat” file as Administrator.
6- The files under “Docs” folder will be uploaded to the Master Page Gallery.
Note: A log file is created on root directory after execution of script, check log file for details.
I have posted the same article on TechNet gallery, you can have a look on this by click this link
there is no .bat?
ReplyDelete