O'Reilly logo

Microsoft SharePoint 2010 and Windows PowerShell 2.0: Expert Cookbook by Yaroslav Pentsarskyy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating lists of custom structures

As business users in any organization use their company's SharePoint site, they often like to add new types of data to specific SharePoint sites or across all of the sites in the farm. For example, you may be asked to create a calendar list on each project site. This may sound like a simple request, but there may be over 100 project sites, and each one now needs to contain a new calendar list. The manual implementation of such a request may be a cumbersome process.

In this recipe, we'll learn exactly what's involved in creating a PowerShell script which provisions a custom SharePoint list and defines its fields. Once the fields are provisioned, we'll add a few test items to the list to see it in action.

At the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required