Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Get-ASApplication

Get-ASApplication

Returns the properties of an application. The settings are returned in the ApplicationInfo object. This cmdlet will return one application object if it is executed against one application, a collection of application objects if executed against more than one application, or nothing if no application is found. The application object is of type ApplicationInfo and contains application properties. If no parameters are given, the list of all currently deployed applications on the local computer is returned. If one or more parameters are given, the list is filtered according to the parameters. The output of this command can be used as piped input to Get-ASAppService.

Syntax

Parameter Set: RootConfig
Get-ASApplication [[-ApplicationPoolName] <String> ] [-Root] [ <CommonParameters>]


Parameters

-ApplicationPoolName<String>

The name of the application pool that applies for the application.


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

-Root

The name of the root application, which specifies that the cmdlet will operate at that scope. If you use the Root parameter, do not use the SiteName, VirtualPath, or Uri parameter.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

-SiteName<String>

The name of a Web site, as defined in the IIS Connections pane, which specifies that the cmdlet will operate at the scope of an application or virtual directory contained within that site. To the SiteName parameter, you must add the VirtualPath parameter that identifies an application or virtual directory contained within the site. The virtual path must include the name of the application or virtual directory as defined in IIS. The leading "/" character in the virtual path is optional. If you use the SiteName parameter, do not use the Uri parameter.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

-Uri<Uri>

A URI for an IIS application or virtual directory, which specifies that the cmdlet will operate at that scope. If you use the Uri parameter, do not use the SiteName and VirtualPath parameter set.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-VirtualPath<String>

The virtual path for an application or directory, as defined in the IIS Manager Connections pane, which specifies that the cmdlet will operate at the scope of that application or virtual directory. You must add the VirtualPath parameter to the SiteName parameter, using SiteName to identify the site that the application or directory is included in. The leading "/" character in the virtual path is optional. The virtual path includes the name of the application or directory, as defined in IIS. If you use the SiteName and VirtualName parameter set, do not use the Uri parameter.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • ApplicationInfo


Examples

EXAMPLE 1

Returns information about the myApp application in the Default Web Site.


Get-ASApplication -SiteName “Default Web Site” -VirtualPath “/myApp”

EXAMPLE 2

Returns information about all the applications in the Default Web Site.


Get-ASApplication -SiteName “Default Web Site”
Show:
© 2015 Microsoft