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 end of this recipe, you will be able to work with SharePoint lists and create instances of them as well as define their structure and fields.
Considering you have already set up your virtual development environment as described in Chapter...