When creating a new library using PowerShell the URL of the library is not the same its name. What parameter do I need to specify to set the target URL?
$WebUrl = "http://sharepoint/sites/teams/teama"
$title = "Images"
$description = "Images"
$spweb = Get-SPWeb -Identity $WebUrl
$listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
$spweb.Lists.Add("$title","$description",$listTemplate)
This produces:
http://sharepoint/sites/teams/teama/_layouts/15/start.aspx#/Images1/
which should be:
http://sharepoint/sites/teams/teama/_layouts/15/start.aspx#/Images/