Get-WebApplication
Gets the web applications associated with a specific site or with a specified name.
Syntax
Get-WebApplication
[-Site <String>]
[[-Name] <String>]
[<CommonParameters>]
Description
The Get-WebApplication cmdlet gets the web applications associated with a specific site or with a specified name.
Examples
Example 1: Get the web applications associated with the default website
IIS:\> Get-WebApplication -Site "Default Web Site"
Name Application pool Protocols Physical Path
---- ---------------- --------- -------------
Test DefaultAppPool http C:\inetpub\wwwroot\
This command gets the web applications associated with the default website.
Parameters
-Name
Specifies the name of the web application for which information is returned.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Site
Specifies the name of the site for which this cmdlet returns application information.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Related Links
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈