Every time after deploying the WSP. Editing the page and adding all the custom webparts on every page is tiresome. Is there any easy way to add all the web parts dynamically using powershell ??


try the script in the following link:

How to Add WebPart to the Publishing Page using PowerShell in SharePoint 2013 - See more at: http://www.sharepointpals.com/post/How-to-Add-WebPart-to-the-Publishing-Page-using-PowerShell-in-SharePoint-2013#sthash.Qb34PJms.dpuf

I hope it helps

| improve this answer | |
  • Please don’t add just a link as answer to a question. If the link breaks, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed, you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer – Benny Skogberg Jan 15 '15 at 6:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.