Get-SCApplication
Gets the applications that are currently installed within a virtual machine that were installed by VMM.
Syntax
Get-SCApplication
[-VMMServer <ServerConnection>]
[-All]
[<CommonParameters>]
Get-SCApplication
[-VMMServer <ServerConnection>]
-VM <VM>
[<CommonParameters>]
Get-SCApplication
[-VMMServer <ServerConnection>]
-ApplicationHost <ApplicationHost>
[<CommonParameters>]
Get-SCApplication
[-VMMServer <ServerConnection>]
[-ID <Guid>]
[<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 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ApplicationHost
Specifies an application host object.
Type: | ApplicationHost |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
Specifies a virtual machine object.
Type: | VM |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VMMServer
Specifies a VMM server object.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
CloudProtectionInfo[]
This cmdlet returns an array of CloudProtectionInfo objects.