Create new list (splist)

25/09/2012 23:51

 

#Create new list on site
$Web="https://fastlanessl"
$Template="Custom List"
$Description="List pre lukasa from powershell"
$ListTitle="Lukasov list"
Start-SPAssignment -Global
$SPWeb = Get-SPWeb -Identity $Web
$listTemplate = $SPWeb.ListTemplates[$Template]
$SPWeb.Lists.Add($ListTitle,$Description,$listTemplate)
$SPWeb.Update()
$SPWeb.Dispose()
Stop-SPAssignment -Global