Powershell Command to Create List in SharePoint 2010

Here’s a sample  script that creates a list using the “Custom” List” template, and adds a column of the type “number” called “Number.”

$web = get-spweb http://34.231.97.77

$web.Lists.Add(“LargeList”,”Big List”,$web.ListTemplates[“Custom List”])

$list = $web.Lists[“LargeList”]

$list.Fields.Add(“Number”,”Number”,0)

You can add any columns you’d like, or not add my Number column

Leave a Reply

Your email address will not be published. Required fields are marked *

Bitnami