$url = "https://sharepoint/sites/PowerShellTests" $web = Get-SPWeb $url $lib = $web.GetList($web.Url + "/oldName") $rootFolder = $lib.RootFolder $rootFolder.MoveTo($web.Url + "/newName")