Get-Website
Gets configuration information for an IIS website.
Syntax
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.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Related Links
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈