Get-Web
App
Domain
Syntax
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.
Optional Parameters
Specifies the application pool for which application domains are returned.
Type: | String |
Aliases: | apppool, pool |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Specifies 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 |
Specifies 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 |