I want to add a webpart to a great number of existing pages. Is there any PowerShell command to add a webpart to a webpart page?
|
|
There's no PowerShell Command, but you can use the You can get a |
|||
|
|
|
Here are some sample powershell scripts for adding webparts to sites: A nice, simple, clean code for adding a CEWP: This one adds a customized web-part: http://www.sharemuch.com/2010/11/17/using-powershell-to-add-and-configure-sharepoint-2010-webparts/ And this adds a page-viewer webpart - Mr. Hahner made this blogpost especially for me! http://spcrew.com/blogs/lists/posts/post.aspx?id=21 |
||||
|
|
Theres nothing like this OOB, but you have pretty much the same options in PowerShell as in say a console application in C#. |
|||
|
|