< Back

Update-DeviceManagement_ManagedDevices_DeviceCompliancePolicyStates

Sat Jan 18, 2020 2:21 pm

NAME Update-DeviceManagement_ManagedDevices_DeviceCompliancePolicyStates



SYNOPSIS

Updates a "microsoft.graph.deviceCompliancePolicyState".





SYNTAX

Update-DeviceManagement_ManagedDevices_DeviceCompliancePolicyStates -deviceCompliancePolicyStateId <string>

-managedDeviceId <string> [-displayName <string>] [-platformType <string>] [-settingCount <int>] [-settingStates

<object[]>] [-state <string>] [-version <int>] [<CommonParameters>]



Update-DeviceManagement_ManagedDevices_DeviceCompliancePolicyStates -deviceCompliancePolicyStateId <string>

-managedDeviceId <string> -ODataType <string> [-displayName <string>] [-platformType <string>] [-settingCount

<int>] [-settingStates <object[]>] [-state <string>] [-version <int>] [<CommonParameters>]





DESCRIPTION

Updates a "microsoft.graph.deviceCompliancePolicyState" object in the "deviceCompliancePolicyStates" collection.



Device compliance policy states for this device.



Graph Call: PATCH ~/deviceManagement/managedDevices/{managedDeviceId}/deviceCompliancePolicyStates





PARAMETERS

-deviceCompliancePolicyStateId <string>

The ID for a "microsoft.graph.deviceCompliancePolicyState" object in the "deviceCompliancePolicyStates"

collection.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-managedDeviceId <string>

A required ID for referencing a "microsoft.graph.managedDevice" object in the "managedDevices" collection.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-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



-ODataType <string>

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-@odata.type <string>

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.



This is an alias of the ODataType parameter.



Required? true

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

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

System.String

The ID for a "microsoft.graph.deviceCompliancePolicyState" object in the "deviceCompliancePolicyStates"

collection.



System.String

A required ID for referencing a "microsoft.graph.managedDevice" object in the "managedDevices" collection.



System.String

The value provided in a search result (i.e. GET on a collection) in the "@odata.type" property.





OUTPUTS





RELATED LINKS

GitHub Repository https://github.com/Microsoft/Intune-PowerShell-SDK