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 populate a MOSS 2010 installation with complete pages. We have a custom development based on MOSS and, given that we are using Agile development, we reinstall the whole solution at the end of every sprint. To properly test the solution at each iteration I need to have different types of pages and items available. Currently I recreate them by hand, but this gets a little tedious. I'm hoping therefore to create a powershell script so that I can automatically populate the solution with pages (custom models), and other custom list items (user defined links, etc).

Is there any way to do this?

Thanks in advance,


share|improve this question
What else do you have in pages other than list items? – James Love Jan 13 '11 at 16:24

You can certainly populate list items using the object model via powershell in a similar manner to how you'd do it via C# object model code.

Here's an example:

share|improve this answer

Your Answer


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