PowerShell Logo Small

New-Website



This is the built-in help made by Microsoft for the command 'New-Website', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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 [<SwitchParameter>]] [-HostHeader <String>] [-Id <UInt32>] [-IPAddress
<String>] [-PhysicalPath <String>] [-Port <UInt32>] [-Ssl [<SwitchParameter>]] [-SslFlags <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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



<

RELATED LINKS


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.