SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to go in and edit a set of webparts in bulk, instead of one by one? We've got a site with roughly 75 pages with an average of 3 webparts per page. Each of those webparts have a section to reference 3 XML files, in which case the links for every XML file is pointing to the wrong culture.

Is there a quick way to edit these in bulk? It would be nice if there was some sort of data-list view of the webparts with their properties so I could essentially do a find/replace on the culture.

Any tips?

share|improve this question

migrated from Nov 29 '11 at 18:27

This question came from our site for professional and enthusiast programmers.

PowerShell or a C# application come to mind. It would be custom but it could do the trick. Do you have more details about what you are trying to do? What web parts? What SharePoint version? Etc. – shufler Nov 29 '11 at 18:34
Are the webparts the same Type? And are we talking web part pages or Publishing Pages? – James Love Nov 29 '11 at 18:35
It's a publishing site. They're smartparts that use a custom .net control for binding/rendering xml/xsl. The Smartpart basically takes in a CSS location, JS location, XML location, and XSL location to spit out on the page. – snowBlind Nov 29 '11 at 20:12
up vote 4 down vote accepted

You can create a powershell script that will get your webparts on a specific page using SPLimitedWebPartManager class - and change settings, you can see a simple example here -

share|improve this answer
Thanks for this. Looks like with some tweaking this could do the job. – snowBlind Dec 2 '11 at 15:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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