< Back
New-DeviceCompliancePolicyStateObject
Post
NAME New-DeviceCompliancePolicyStateObject
SYNOPSIS
Creates a new object which represents a "microsoft.graph.deviceCompliancePolicyState" (or one of its derived
types).
SYNTAX
New-DeviceCompliancePolicyStateObject [-displayName <string>] [-platformType <string>] [-settingCount <int>]
[-settingStates <object[]>] [-state <string>] [-version <int>] [<CommonParameters>]
DESCRIPTION
Creates a new object which represents a "microsoft.graph.deviceCompliancePolicyState" (or one of its derived
types).
Device Compliance Policy State for a given device.
PARAMETERS
-settingStates <object[]>
The "settingStates" property, of type "microsoft.graph.deviceCompliancePolicySettingState".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-displayName <string>
The "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
The name of the policy for this policyBase
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-version <int>
The "version" property, of type "Edm.Int32".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
The version of the policy
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-platformType <string>
The "platformType" property, of type "microsoft.graph.policyPlatformType".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
Platform type that the policy applies to
Valid values: 'android', 'iOS', 'macOS', 'windowsPhone81', 'windows81AndLater', 'windows10AndLater',
'androidWorkProfile', 'all'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-state <string>
The "state" property, of type "microsoft.graph.complianceStatus".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
The compliance state of the policy
Valid values: 'unknown', 'notApplicable', 'compliant', 'remediated', 'nonCompliant', 'error', 'conflict',
'notAssigned'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-settingCount <int>
The "settingCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
Count of how many setting a policy holds
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
SYNOPSIS
Creates a new object which represents a "microsoft.graph.deviceCompliancePolicyState" (or one of its derived
types).
SYNTAX
New-DeviceCompliancePolicyStateObject [-displayName <string>] [-platformType <string>] [-settingCount <int>]
[-settingStates <object[]>] [-state <string>] [-version <int>] [<CommonParameters>]
DESCRIPTION
Creates a new object which represents a "microsoft.graph.deviceCompliancePolicyState" (or one of its derived
types).
Device Compliance Policy State for a given device.
PARAMETERS
-settingStates <object[]>
The "settingStates" property, of type "microsoft.graph.deviceCompliancePolicySettingState".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-displayName <string>
The "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
The name of the policy for this policyBase
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-version <int>
The "version" property, of type "Edm.Int32".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
The version of the policy
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-platformType <string>
The "platformType" property, of type "microsoft.graph.policyPlatformType".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
Platform type that the policy applies to
Valid values: 'android', 'iOS', 'macOS', 'windowsPhone81', 'windows81AndLater', 'windows10AndLater',
'androidWorkProfile', 'all'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-state <string>
The "state" property, of type "microsoft.graph.complianceStatus".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
The compliance state of the policy
Valid values: 'unknown', 'notApplicable', 'compliant', 'remediated', 'nonCompliant', 'error', 'conflict',
'notAssigned'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-settingCount <int>
The "settingCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.deviceCompliancePolicyState" type.
Count of how many setting a policy holds
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS