I want to create libraries in SharePoint 2010 using PowerShell. So far, so good.
I'm using this chunk of code to create the library (actually list, but that doesn't matter)
$listTemplate = $currentWeb.ListTemplates | ? {$_.name -eq $webTemplate }
$newListId = $currentWeb.Lists.Add($line.Url, $line.Description, $listTemplate)
$newList = $currentWeb.Lists[$newListId]
$newList.Title = $line.Library
$newList.OnQuickLaunch = $addToQuickLaunch
$newList.Update()
But for some strange reason the (display) title of my library doesn't get set to whatever is in $line.Library.
Any hints?
$webTemplate = "Document Library"$line.Url = "processes"; $line.Description = ""; $line.Library = "Process Documenation";– nyn3x Feb 23 at 14:54