Edit

Share via


Get-WebAppDomain

Gets the application domains in which the specified IIS worker process is running.

Syntax

Default (Default)

Get-WebAppDomain
    [-InputObject <PSObject>]
    [-ApplicationPool <String>]
    [-ProcessId <UInt32>]
    [<CommonParameters>]

Description

The Get-WebAppDomain cmdlet gets the application domains in which the specified Internet Information Services (IIS) worker process is running.

Examples

Example 1: Get the application domain of a running worker process

IIS:\> Get-WebAppDomain -ProcessId 5872 -ApplicationPool "DefaultAppPool"
IIS:\> Get-ChildItem IIS:\AppPools\DefaultAppPool\WorkerProcesses

The first command gets the application domains loaded in the specified worker process. The second command gets the process ID from the WorkerProcesses node below the AppPools node.

Parameters

-ApplicationPool

Specifies the application pool for which application domains are returned.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:apppool, pool

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-InputObject

Specifies the input object from which parameter data is received.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ProcessId

Specifies the ID of the worker process for which the application domain is returned.

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False
Aliases:proc, procid, pid, wp

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.