October 2010
Intermediate to advanced
1008 pages
46h 16m
English
Administrators can combine the built-in PowerShell cmdlets with the SharePoint .NET APIs to create lists and document libraries on-the-fly. Use the following code sample:

The preceding sample creates three lists on a SharePoint site (“http://portal.companyABC.com/A-Project-Site”). The function New-SPList takes three parameters: Title, Description, and ListTemplateType. You must supply a unique title for a list within one site; to pass an appropriate template value, take a look at SPListTemplateType. For more information, refer to the following URL:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splisttemplatetype(office.14).aspx ...
Read now
Unlock full access