Get-SCComplianceStatus
Gets the compliance status of computers managed by VMM.
Syntax
Get-SCComplianceStatus
[-VMMServer <ServerConnection>]
[-All]
[<CommonParameters>]
Get-SCComplianceStatus
[-VMMServer <ServerConnection>]
-VMMManagedComputer <VMMManagedComputer>
[<CommonParameters>]
Description
The Get-SCComplianceStatus cmdlet gets the compliance status object of one or more computers managed by Virtual Machine Manager (VMM). The returned compliance status provides details on the compliance against assigned baselines.
Examples
Example 1: Get the compliance status of a host
PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> $Compliance = Get-SCComplianceStatus -VMMManagedComputer $VMHost.ManagedComputer
PS C:\> $Compliance
The first command gets the host object named VMHost01 and stores the object in the $VMHost variable.
The second command gets the compliance status object for the host stored in $VMHost01 and stores the object in the $Compliance variable.
The last command displays information about the compliance status of VMHost01 to the user.
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 |
-VMMManagedComputer
Specifies a computer object that is managed by VMM.
Type: | VMMManagedComputer |
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
ComplianceStatus
This cmdlet returns a ComplianceStatus object.