Get-Website
Gets configuration information for an IIS website.
Syntax
Default (Default)
Get-Website
[[-Name] <String>]
[<CommonParameters>]
Description
The Get-Website cmdlet gets configuration information for an Internet Information Services (IIS) website.
Examples
Example 1: Get information about the default website
IIS:\> Get-Website -Name "Default Web Site"
Name ID State Physical Path Bindings
---- -- ----- ------------- --------
Default Web Site 1 Started %SystemDrive%\inetpub\wwwroot http *:80:
net.tcp 808:*
This command returns the configuration information for the default website.
Parameters
-Name
Specifies the name of the website about which this cmdlet returns configuration information.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | True |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.