Earlier we discussed about HNSC Concept and How to create HNSC in SharePoint. To know that click here
In this post I am explaining how to manage(Add/Remove) the URL of HNSC.
Add URL for HNSC site.
To view the existing URL's and its zone use the below command.
Get-SPSiteURL -Identity "http://FirstSiteCollection.SharePointShiva.com"
Note the output and Use the below command to add the new URL in existing site collection
Set-SPSiteURL -Identity "http://FirstSiteCollection.SharePointShiva.com" - Url http://addingnewurl.SharePointShiva.com -Zone "custom"
The above command will add the new url called addingnewurl.sharepointshiva.com to the existing site collection which contain the url called firstsitecollection.sharepointshiva.com
Don't forget to mention the ZONE.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove the URL of HNSC.
Remove-SPSiteURL -Identity http://firstsitecollection.sharepointshiva.com
Post your query in comment.
In this post I am explaining how to manage(Add/Remove) the URL of HNSC.
Add URL for HNSC site.
To view the existing URL's and its zone use the below command.
Get-SPSiteURL -Identity "http://FirstSiteCollection.SharePointShiva.com"
Note the output and Use the below command to add the new URL in existing site collection
Set-SPSiteURL -Identity "http://FirstSiteCollection.SharePointShiva.com" - Url http://addingnewurl.SharePointShiva.com -Zone "custom"
The above command will add the new url called addingnewurl.sharepointshiva.com to the existing site collection which contain the url called firstsitecollection.sharepointshiva.com
Don't forget to mention the ZONE.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Remove the URL of HNSC.
Remove-SPSiteURL -Identity http://firstsitecollection.sharepointshiva.com
Post your query in comment.
No comments:
Post a Comment