Get-Website

Gets configuration information for an IIS Web site.

Syntax

Get-Website
   [[-Name] <String>]
   [<CommonParameters>]

Description

Gets configuration information for an IIS Web site.

Examples

-------------- EXAMPLE 1: Get information about the Default Web Site --------------

IIS:\>Get-Website -Name "Default Web Site"

Returns the configuration information for the Default Web Site.

Name ID State Physical Path Bindings


Default Web Site 1 Started%SystemDrive%\inetpub\wwwroot http *:80:

net.tcp 808:*

Optional Parameters

-Name

The name of the Web site about which configuration information is returned.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False