Wednesday, September 14, 2016

SharePoint 2013 TIP: how to easily rename and retitle a website

You can easily rename and re-title a website by getting an instance of the website object and setting its Name and Title properties, like so:

$web=Get-SPWeb -Identity "http://MyFarm.com/MyRootWebsite/MyWebsite"
$web.Title="My New Website Title"
$web.name="MyNewWebsiteName"
$web.Update()

which gives

http://MyFarm.com/MyRootWebsite/MyNewWebsiteName

References

Notes

  • This works for subwebsites off the root.
  • To rename the site collection, see the references above.

No comments: