Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

Multi-Cloud Service Orchestration & Delivery Platform

SharePoint 2010 – Host-Named Site Collections Using Powershell

S

Question: How to create host named site collections?

Answer: Create host-named site collections using PowerShell

The management shell in SharePoint 2010 provides a comprehensive set of Windows PowerShell cmdlets that make development, implementation, and management of SharePoint 2010 easier and more effective. The SharePoint management shell replaces the Stsadm.exe management tool. All current and upcoming development of command-line resources and management information in Microsoft SharePoint Foundation 2010 should use this new scripting technology.

However, in order to create named site collection we can make use of the same SharePoint management shell. Following is the way to go:

Create host-named site collections using PowerShell:

Open up the SharePoint 2010 Management Shell and enter the following commands to create a new site collection for each of your desired vanity (Self-love) URLs. In this case I have created a site collection with the host name portal.machsol.com

New-SPSite http://portal.machsol.com -OwnerAlias DOMAIN\username -HostHeaderWebApplication http://web-app-url.com

Multi-Cloud Service Orchestration & Delivery Platform

Connect with MachSol

MachSol is Microsoft Certified Partner and Microsoft Validated Vendor having years of experience in cloud automation industry.

Categories