Get-WebApplication

Gets the Web Applications associated with a specific site or with the specified name.

Syntax

Get-WebApplication
   [-Site <String>]
   [[-Name] <String>]
   [<CommonParameters>]

Description

Gets the Web applications associated with a specific site or with the specified name.

Examples

-------------- EXAMPLE 1: Gets the Web applications associated with the Default Web Site --------------

IIS:\>Get-WebApplication -Site "Default Web Site"

Gets the Web applications associated with the Default Web Site.

Optional Parameters

-Name

The name of the Web application.

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

The Site name for which application information is returned.

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