Get-WebAppDomain

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

Syntax

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

Description

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

Examples

-------------- EXAMPLE 1: Get the application domain of a running Worker Process --------------

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

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:

Optional Parameters

-ApplicationPool

The application pool for which the application domains are returned.

Type:String
Aliases:apppool, pool
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-InputObject

The input object from which parameter data is received.

Type:PSObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ProcessId

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

Type:UInt32
Aliases:proc, procid, pid, wp
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False