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:
which gives
$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
- Rename a web
- Rename a site collection
- Get-SPSite
- SPSite.Rename method
- Customer Question: Renaming Site Collections in SharePoint 2013
- How to Rename SharePoint 2013 Site Collections Without Prayer or Sobbing
- Rename a web application
- General
Notes
- This works for subwebsites off the root.
- To rename the site collection, see the references above.
No comments:
Post a Comment