Get-WebAppDomain
Get-WebAppDomain
Gets the application domains in which the specified IIS worker process is running.
Syntax
Get-WebAppDomain [-InputObject <PSObject>] [-ApplicationPool <String>] [-ProcessId <UInt32>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
Detailed Description
Gets the application domains in which the specified IIS worker process is running.
Parameters
-InputObject <PSObject>
The input object from which parameter data is received.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
named |
-ApplicationPool <String>
The application pool for which the application domains are returned.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByPropertyName) |
Position? |
named |
-ProcessId <UInt32>
The ID of the worker process for which the application domain is returned.
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByPropertyName) |
Position? |
named |
-WarningAction <ActionPreference>
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-WarningVariable <String>
Attributes
Name | Value |
---|---|
Required? |
false |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
named |
-CommonParameter
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see About Common Parameter
Input and Return Types
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
Input Type |
. |
Return Type |
. |
Notes
Examples
EXAMPLE 1: Get the application domain of a running Worker Process
IIS:\>Get-WebAppDomain -ProcessId 5872 -ApplicationPool DefaultAppPool
The example gets the application domains loaded in the specified Worker Process. The process ID can be retrieved by looking at the WorkerProcesses node below the AppPools node, for example:
IIS:\>Get-ChildItem IIS:\AppPools\DefaultAppPool\WorkerProcesses