PowerShell Logo Small

New-Website



This is the built-in help made by Microsoft for the command 'New-Website', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a new IIS Web site.

SYNTAX


New-Website [-Name] <String> [-ApplicationPool <String>] [-Force] [-HostHeader <String>] [-Id <UInt32>] [-IPAddress <String>] [-PhysicalPath <String>] [-Port <UInt32>]
[-Ssl] [-SslFlags <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Creates a new IIS Web site with the settings specified in parameter values.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=287879

REMARKS

<

Examples


-------------- EXAMPLE 1: Add a New Web Site --------------

IIS:\>New-WebSite -Name TestSite -Port 80 -HostHeader TestSite -PhysicalPath "$env:systemdrive\inetpub\testsite"



Creates a new Web site named TestSite.