Get-WebApplication 
	Gets the web applications associated with a specific site or with a specified name.
Syntax
Default (Default)
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.
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 | 
-Site
Specifies the name of the site for which this cmdlet returns application information.
Parameter properties
| Type: | String | 
| Default value: | None | 
| Supports wildcards: | False | 
| DontShow: | False | 
Parameter sets
(All)
| Position: | Named | 
| 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.