Get-SCApplication

Gets the applications that are currently installed within a virtual machine that were installed by VMM.

Syntax

Get-SCApplication [-All] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplication -ApplicationHost <ApplicationHost> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplication [-ID <Guid>] [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCApplication -VM <VM> [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Get-SCApplication cmdlet gets the applications installed on a virtual machine by Virtual Machine Manager (VMM).

Examples

Example 1: Get the applications installed on a virtual machine

PS C:\> $VM = Get-SCVirtualMachine "VM01"
PS C:\> $Apps = Get-SCApplication -VM $VM

The first command gets the virtual machine object named VM01 and stores the object in the $VM variable.

The second command gets all applications installed on VM01.

Parameters

-All

Indicates that this cmdlet gets all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All gets all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApplicationHost

Specifies an application host object.

Type:ApplicationHost
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VM

Specifies a virtual machine object.

Type:VM
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

CloudProtectionInfo[]

This cmdlet returns an array of **CloudProtectionInfo** objects.