Get-SCApplication
Gets the applications that are currently installed within a virtual machine that were installed by VMM.
Syntax
All (Default)
Get-SCApplication
[-VMMServer <ServerConnection>]
[-All]
[<CommonParameters>]
VM
Get-SCApplication
-VM <VM>
[-VMMServer <ServerConnection>]
[<CommonParameters>]
ApplicationHost
Get-SCApplication
-ApplicationHost <ApplicationHost>
[-VMMServer <ServerConnection>]
[<CommonParameters>]
ID
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.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
All
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ApplicationHost
Specifies an application host object.
Parameter properties
Type: | ApplicationHost |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ApplicationHost
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ID
Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.
Parameter properties
Type: | Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ID
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VM
Specifies a virtual machine object.
Parameter properties
Type: | VM |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
VM
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-VMMServer
Specifies a VMM server object.
Parameter properties
Type: | ServerConnection |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
CloudProtectionInfo
This cmdlet returns an array of CloudProtectionInfo objects.