Get-SCApplicationHost

Gets the application host for a service or for all services.

Description

The Get-SCApplicationHost cmdlet gets the application host for a service or, when used with the All parameter, for all services.

For more information about Get-SCApplicationHost, type: "Get-SCApplicationHost -online".

Parameters

All

Required? false
Accept Pipeline Input? false
Position? named
Retrieves a full list of all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All retrieves all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Name

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Name

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

Service

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM service object.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

ID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the numerical identifier (as a globally unique identifier, or GUID) for a specific object.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Examples

1: Get the application host for a service.
PS C:\> $Service = Get-SCService -Name "Service01"
PS C:\> $ApplicationHost = Get-SCApplicationHost -Service $Service
PS C:\> $ApplicationHost
The first command gets the service object named Service01 and stores the object in the $Service variable.

The second command gets the application host for the service stored in $Service and stores the variable in the $ApplicationHost variable.

The last command displays the properties of the application host stored in $ApplicationHost to the user. 

See Also