< Back
Update-DeviceManagement_DeviceCompliancePolicies
Post
NAME Update-DeviceManagement_DeviceCompliancePolicies
SYNOPSIS
Updates a "microsoft.graph.deviceCompliancePolicy".
SYNTAX
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> [-assignments <object[]>]
[-createdDateTime <DateTimeOffset>] [-description <string>] [-deviceSettingStateSummaries <object[]>]
[-deviceStatuses <object[]>] [-deviceStatusOverview <object>] [-displayName <string>] [-lastModifiedDateTime
<DateTimeOffset>] [-scheduledActionsForRule <object[]>] [-userStatuses <object[]>] [-userStatusOverview <object>]
[-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string>
-windowsPhone81CompliancePolicy <SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>]
[-description <string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>]
[-deviceStatusOverview <object>] [-displayName <string>] [-lastModifiedDateTime <DateTimeOffset>]
[-osMaximumVersion <string>] [-osMinimumVersion <string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays
<int>] [-passwordMinimumCharacterSetCount <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>] [-storageRequireEncryption <bool>]
[-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -windows81CompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-displayName <string>] [-lastModifiedDateTime <DateTimeOffset>] [-osMaximumVersion <string>] [-osMinimumVersion
<string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays <int>] [-passwordMinimumCharacterSetCount <int>]
[-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount
<int>] [-passwordRequired <bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string>
-windows10MobileCompliancePolicy <SwitchParameter> [-assignments <object[]>] [-bitLockerEnabled <bool>]
[-codeIntegrityEnabled <bool>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-displayName <string>] [-earlyLaunchAntiMalwareDriverEnabled <bool>] [-lastModifiedDateTime <DateTimeOffset>]
[-osMaximumVersion <string>] [-osMinimumVersion <string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays
<int>] [-passwordMinimumCharacterSetCount <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-passwordRequireToUnlockFromIdle <bool>] [-scheduledActionsForRule
<object[]>] [-secureBootEnabled <bool>] [-storageRequireEncryption <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -windows10CompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-bitLockerEnabled <bool>] [-codeIntegrityEnabled <bool>]
[-createdDateTime <DateTimeOffset>] [-description <string>] [-deviceSettingStateSummaries <object[]>]
[-deviceStatuses <object[]>] [-deviceStatusOverview <object>] [-displayName <string>]
[-earlyLaunchAntiMalwareDriverEnabled <bool>] [-lastModifiedDateTime <DateTimeOffset>] [-mobileOsMaximumVersion
<string>] [-mobileOsMinimumVersion <string>] [-osMaximumVersion <string>] [-osMinimumVersion <string>]
[-passwordBlockSimple <bool>] [-passwordExpirationDays <int>] [-passwordMinimumCharacterSetCount <int>]
[-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount
<int>] [-passwordRequired <bool>] [-passwordRequiredToUnlockFromIdle <bool>] [-passwordRequiredType <string>]
[-requireHealthyDeviceReport <bool>] [-scheduledActionsForRule <object[]>] [-secureBootEnabled <bool>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -macOSCompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-firewallBlockAllIncoming <bool>] [-firewallEnabled <bool>] [-firewallEnableStealthMode <bool>]
[-lastModifiedDateTime <DateTimeOffset>] [-osMaximumVersion <string>] [-osMinimumVersion <string>]
[-passwordBlockSimple <bool>] [-passwordExpirationDays <int>] [-passwordMinimumCharacterSetCount <int>]
[-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount
<int>] [-passwordRequired <bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>]
[-storageRequireEncryption <bool>] [-systemIntegrityProtectionEnabled <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -iosCompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-lastModifiedDateTime <DateTimeOffset>] [-managedEmailProfileRequired <bool>] [-osMaximumVersion
<string>] [-osMinimumVersion <string>] [-passcodeBlockSimple <bool>] [-passcodeExpirationDays <int>]
[-passcodeMinimumCharacterSetCount <int>] [-passcodeMinimumLength <int>] [-passcodeMinutesOfInactivityBeforeLock
<int>] [-passcodePreviousPasscodeBlockCount <int>] [-passcodeRequired <bool>] [-passcodeRequiredType <string>]
[-scheduledActionsForRule <object[]>] [-securityBlockJailbrokenDevices <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -androidWorkProfileCompliancePolicy <SwitchParameter>
-deviceCompliancePolicyId <string> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description
<string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-lastModifiedDateTime <DateTimeOffset>] [-minAndroidSecurityPatchLevel <string>] [-osMaximumVersion
<string>] [-osMinimumVersion <string>] [-passwordExpirationDays <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>] [-securityBlockJailbrokenDevices
<bool>] [-securityDisableUsbDebugging <bool>] [-securityPreventInstallAppsFromUnknownSources <bool>]
[-securityRequireCompanyPortalAppIntegrity <bool>] [-securityRequireGooglePlayServices <bool>]
[-securityRequireSafetyNetAttestationBasicIntegrity <bool>] [-securityRequireSafetyNetAttestationCertifiedDevice
<bool>] [-securityRequireUpToDateSecurityProviders <bool>] [-securityRequireVerifyApps <bool>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -androidCompliancePolicy <SwitchParameter>
-deviceCompliancePolicyId <string> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description
<string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-lastModifiedDateTime <DateTimeOffset>] [-minAndroidSecurityPatchLevel <string>] [-osMaximumVersion
<string>] [-osMinimumVersion <string>] [-passwordExpirationDays <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>] [-securityBlockJailbrokenDevices
<bool>] [-securityDisableUsbDebugging <bool>] [-securityPreventInstallAppsFromUnknownSources <bool>]
[-securityRequireCompanyPortalAppIntegrity <bool>] [-securityRequireGooglePlayServices <bool>]
[-securityRequireSafetyNetAttestationBasicIntegrity <bool>] [-securityRequireSafetyNetAttestationCertifiedDevice
<bool>] [-securityRequireUpToDateSecurityProviders <bool>] [-securityRequireVerifyApps <bool>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -ODataType <string>
[-assignments <object[]>] [-bitLockerEnabled <bool>] [-codeIntegrityEnabled <bool>] [-createdDateTime
<DateTimeOffset>] [-description <string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>]
[-deviceStatusOverview <object>] [-deviceThreatProtectionEnabled <bool>]
[-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName <string>]
[-earlyLaunchAntiMalwareDriverEnabled <bool>] [-firewallBlockAllIncoming <bool>] [-firewallEnabled <bool>]
[-firewallEnableStealthMode <bool>] [-lastModifiedDateTime <DateTimeOffset>] [-managedEmailProfileRequired <bool>]
[-minAndroidSecurityPatchLevel <string>] [-mobileOsMaximumVersion <string>] [-mobileOsMinimumVersion <string>]
[-osMaximumVersion <string>] [-osMinimumVersion <string>] [-passcodeBlockSimple <bool>] [-passcodeExpirationDays
<int>] [-passcodeMinimumCharacterSetCount <int>] [-passcodeMinimumLength <int>]
[-passcodeMinutesOfInactivityBeforeLock <int>] [-passcodePreviousPasscodeBlockCount <int>] [-passcodeRequired
<bool>] [-passcodeRequiredType <string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays <int>]
[-passwordMinimumCharacterSetCount <int>] [-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock
<int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired <bool>] [-passwordRequiredToUnlockFromIdle
<bool>] [-passwordRequiredType <string>] [-passwordRequireToUnlockFromIdle <bool>] [-requireHealthyDeviceReport
<bool>] [-scheduledActionsForRule <object[]>] [-secureBootEnabled <bool>] [-securityBlockJailbrokenDevices <bool>]
[-securityDisableUsbDebugging <bool>] [-securityPreventInstallAppsFromUnknownSources <bool>]
[-securityRequireCompanyPortalAppIntegrity <bool>] [-securityRequireGooglePlayServices <bool>]
[-securityRequireSafetyNetAttestationBasicIntegrity <bool>] [-securityRequireSafetyNetAttestationCertifiedDevice
<bool>] [-securityRequireUpToDateSecurityProviders <bool>] [-securityRequireVerifyApps <bool>]
[-storageRequireEncryption <bool>] [-systemIntegrityProtectionEnabled <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
DESCRIPTION
Updates a "microsoft.graph.deviceCompliancePolicy" object in the "deviceCompliancePolicies" collection.
The device compliance policies.
Graph Call: PATCH ~/deviceManagement/deviceCompliancePolicies
PARAMETERS
-deviceCompliancePolicyId <string>
The ID for a "microsoft.graph.deviceCompliancePolicy" object in the "deviceCompliancePolicies" collection.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-createdDateTime <DateTimeOffset>
The "createdDateTime" property, of type "Edm.DateTimeOffset".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
DateTime the object was created.
Required? false
Position? named
Default value 1/1/0001 12:00:00 AM +00:00
Accept pipeline input? false
Accept wildcard characters? false
-description <string>
The "description" property, of type "Edm.String".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Admin provided description of the Device Configuration.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-lastModifiedDateTime <DateTimeOffset>
The "lastModifiedDateTime" property, of type "Edm.DateTimeOffset".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
DateTime the object was last modified.
Required? false
Position? named
Default value 1/1/0001 12:00:00 AM +00:00
Accept pipeline input? false
Accept wildcard characters? false
-displayName <string>
The "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Admin provided name of the device configuration.
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.deviceCompliancePolicy" type.
Version of the device configuration.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-scheduledActionsForRule <object[]>
The "scheduledActionsForRule" property, of type "microsoft.graph.deviceComplianceScheduledActionForRule".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
The list of scheduled action for this rule
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceStatuses <object[]>
The "deviceStatuses" property, of type "microsoft.graph.deviceComplianceDeviceStatus".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
List of DeviceComplianceDeviceStatus.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-userStatuses <object[]>
The "userStatuses" property, of type "microsoft.graph.deviceComplianceUserStatus".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
List of DeviceComplianceUserStatus.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceStatusOverview <object>
The "deviceStatusOverview" property, of type "microsoft.graph.deviceComplianceDeviceOverview".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Device compliance devices status overview
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-userStatusOverview <object>
The "userStatusOverview" property, of type "microsoft.graph.deviceComplianceUserOverview".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Device compliance users status overview
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceSettingStateSummaries <object[]>
The "deviceSettingStateSummaries" property, of type "microsoft.graph.settingStateDeviceSummary".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Compliance Setting State Device Summary
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-assignments <object[]>
The "assignments" property, of type "microsoft.graph.deviceCompliancePolicyAssignment".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
The collection of assignments for this compliance policy.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-windowsPhone81CompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windowsPhone81CompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordBlockSimple <bool>
The "passwordBlockSimple" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Whether or not to block syncing the calendar.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordExpirationDays <int>
The "passwordExpirationDays" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Number of days before the password expires.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordMinimumLength <int>
The "passwordMinimumLength" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Minimum length of passwords.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordMinutesOfInactivityBeforeLock <int>
The "passwordMinutesOfInactivityBeforeLock" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Minutes of inactivity before a password is required.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordMinimumCharacterSetCount <int>
The "passwordMinimumCharacterSetCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
The number of character sets required in the password.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequiredType <string>
The "passwordRequiredType" property, of type "microsoft.graph.requiredPasswordType".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
The required password type.
Valid values: 'deviceDefault', 'alphanumeric', 'numeric'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-passwordPreviousPasswordBlockCount <int>
The "passwordPreviousPasswordBlockCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Number of previous passwords to block. Valid values 0 to 24
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequired <bool>
The "passwordRequired" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Whether or not to require a password.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-osMinimumVersion <string>
The "osMinimumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Minimum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osMaximumVersion <string>
The "osMaximumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Maximum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-storageRequireEncryption <bool>
The "storageRequireEncryption" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Require encryption on windows phone devices.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-windows81CompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windows81CompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-windows10MobileCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windows10MobileCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequireToUnlockFromIdle <bool>
The "passwordRequireToUnlockFromIdle" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require a password to unlock an idle device.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-earlyLaunchAntiMalwareDriverEnabled <bool>
The "earlyLaunchAntiMalwareDriverEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware
driver is enabled.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-bitLockerEnabled <bool>
The "bitLockerEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-secureBootEnabled <bool>
The "secureBootEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-codeIntegrityEnabled <bool>
The "codeIntegrityEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-windows10CompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windows10CompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequiredToUnlockFromIdle <bool>
The "passwordRequiredToUnlockFromIdle" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Require a password to unlock an idle device.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-requireHealthyDeviceReport <bool>
The "requireHealthyDeviceReport" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-mobileOsMinimumVersion <string>
The "mobileOsMinimumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Minimum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-mobileOsMaximumVersion <string>
The "mobileOsMaximumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Maximum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-macOSCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.macOSCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-systemIntegrityProtectionEnabled <bool>
The "systemIntegrityProtectionEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Require that devices have enabled system integrity protection.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-deviceThreatProtectionEnabled <bool>
The "deviceThreatProtectionEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Require that devices have enabled device threat protection.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-deviceThreatProtectionRequiredSecurityLevel <string>
The "deviceThreatProtectionRequiredSecurityLevel" property, of type
"microsoft.graph.deviceThreatProtectionLevel".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Require Mobile Threat Protection minimum risk level to report noncompliance.
Valid values: 'unavailable', 'secured', 'low', 'medium', 'high', 'notSet'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-firewallEnabled <bool>
The "firewallEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Whether the firewall should be enabled or not.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-firewallBlockAllIncoming <bool>
The "firewallBlockAllIncoming" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Corresponds to the ???????Block all incoming connections??????? option.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-firewallEnableStealthMode <bool>
The "firewallEnableStealthMode" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Corresponds to ???????Enable stealth mode.???????
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-iosCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.iosCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passcodeBlockSimple <bool>
The "passcodeBlockSimple" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Indicates whether or not to block simple passcodes.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passcodeExpirationDays <int>
The "passcodeExpirationDays" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Number of days before the passcode expires. Valid values 1 to 65535
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeMinimumLength <int>
The "passcodeMinimumLength" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Minimum length of passcode. Valid values 4 to 14
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeMinutesOfInactivityBeforeLock <int>
The "passcodeMinutesOfInactivityBeforeLock" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Minutes of inactivity before a passcode is required.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodePreviousPasscodeBlockCount <int>
The "passcodePreviousPasscodeBlockCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Number of previous passcodes to block. Valid values 1 to 24
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeMinimumCharacterSetCount <int>
The "passcodeMinimumCharacterSetCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
The number of character sets required in the password.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeRequiredType <string>
The "passcodeRequiredType" property, of type "microsoft.graph.requiredPasswordType".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
The required passcode type.
Valid values: 'deviceDefault', 'alphanumeric', 'numeric'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-passcodeRequired <bool>
The "passcodeRequired" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Indicates whether or not to require a passcode.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityBlockJailbrokenDevices <bool>
The "securityBlockJailbrokenDevices" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Devices must not be jailbroken or rooted.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-managedEmailProfileRequired <bool>
The "managedEmailProfileRequired" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Indicates whether or not to require a managed email profile.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-androidWorkProfileCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.androidWorkProfileCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityPreventInstallAppsFromUnknownSources <bool>
The "securityPreventInstallAppsFromUnknownSources" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require that devices disallow installation of apps from unknown sources.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityDisableUsbDebugging <bool>
The "securityDisableUsbDebugging" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Disable USB debugging on Android devices.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireVerifyApps <bool>
The "securityRequireVerifyApps" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the Android Verify apps feature is turned on.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-minAndroidSecurityPatchLevel <string>
The "minAndroidSecurityPatchLevel" property, of type "Edm.String".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Minimum Android security patch level.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireSafetyNetAttestationBasicIntegrity <bool>
The "securityRequireSafetyNetAttestationBasicIntegrity" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to pass the SafetyNet basic integrity check.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireSafetyNetAttestationCertifiedDevice <bool>
The "securityRequireSafetyNetAttestationCertifiedDevice" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to pass the SafetyNet certified device check.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireGooglePlayServices <bool>
The "securityRequireGooglePlayServices" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require Google Play Services to be installed and enabled on the device.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireUpToDateSecurityProviders <bool>
The "securityRequireUpToDateSecurityProviders" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to have up to date security providers. The device will require Google Play Services to be
enabled and up to date.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireCompanyPortalAppIntegrity <bool>
The "securityRequireCompanyPortalAppIntegrity" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to pass the Company Portal client app runtime integrity check.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-androidCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.androidCompliancePolicy" type.
Required? true
Position? named
Default value False
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.deviceCompliancePolicy" object in the "deviceCompliancePolicies" 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
SYNOPSIS
Updates a "microsoft.graph.deviceCompliancePolicy".
SYNTAX
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> [-assignments <object[]>]
[-createdDateTime <DateTimeOffset>] [-description <string>] [-deviceSettingStateSummaries <object[]>]
[-deviceStatuses <object[]>] [-deviceStatusOverview <object>] [-displayName <string>] [-lastModifiedDateTime
<DateTimeOffset>] [-scheduledActionsForRule <object[]>] [-userStatuses <object[]>] [-userStatusOverview <object>]
[-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string>
-windowsPhone81CompliancePolicy <SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>]
[-description <string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>]
[-deviceStatusOverview <object>] [-displayName <string>] [-lastModifiedDateTime <DateTimeOffset>]
[-osMaximumVersion <string>] [-osMinimumVersion <string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays
<int>] [-passwordMinimumCharacterSetCount <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>] [-storageRequireEncryption <bool>]
[-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -windows81CompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-displayName <string>] [-lastModifiedDateTime <DateTimeOffset>] [-osMaximumVersion <string>] [-osMinimumVersion
<string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays <int>] [-passwordMinimumCharacterSetCount <int>]
[-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount
<int>] [-passwordRequired <bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string>
-windows10MobileCompliancePolicy <SwitchParameter> [-assignments <object[]>] [-bitLockerEnabled <bool>]
[-codeIntegrityEnabled <bool>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-displayName <string>] [-earlyLaunchAntiMalwareDriverEnabled <bool>] [-lastModifiedDateTime <DateTimeOffset>]
[-osMaximumVersion <string>] [-osMinimumVersion <string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays
<int>] [-passwordMinimumCharacterSetCount <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-passwordRequireToUnlockFromIdle <bool>] [-scheduledActionsForRule
<object[]>] [-secureBootEnabled <bool>] [-storageRequireEncryption <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -windows10CompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-bitLockerEnabled <bool>] [-codeIntegrityEnabled <bool>]
[-createdDateTime <DateTimeOffset>] [-description <string>] [-deviceSettingStateSummaries <object[]>]
[-deviceStatuses <object[]>] [-deviceStatusOverview <object>] [-displayName <string>]
[-earlyLaunchAntiMalwareDriverEnabled <bool>] [-lastModifiedDateTime <DateTimeOffset>] [-mobileOsMaximumVersion
<string>] [-mobileOsMinimumVersion <string>] [-osMaximumVersion <string>] [-osMinimumVersion <string>]
[-passwordBlockSimple <bool>] [-passwordExpirationDays <int>] [-passwordMinimumCharacterSetCount <int>]
[-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount
<int>] [-passwordRequired <bool>] [-passwordRequiredToUnlockFromIdle <bool>] [-passwordRequiredType <string>]
[-requireHealthyDeviceReport <bool>] [-scheduledActionsForRule <object[]>] [-secureBootEnabled <bool>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -macOSCompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-firewallBlockAllIncoming <bool>] [-firewallEnabled <bool>] [-firewallEnableStealthMode <bool>]
[-lastModifiedDateTime <DateTimeOffset>] [-osMaximumVersion <string>] [-osMinimumVersion <string>]
[-passwordBlockSimple <bool>] [-passwordExpirationDays <int>] [-passwordMinimumCharacterSetCount <int>]
[-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount
<int>] [-passwordRequired <bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>]
[-storageRequireEncryption <bool>] [-systemIntegrityProtectionEnabled <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -iosCompliancePolicy
<SwitchParameter> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description <string>]
[-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-lastModifiedDateTime <DateTimeOffset>] [-managedEmailProfileRequired <bool>] [-osMaximumVersion
<string>] [-osMinimumVersion <string>] [-passcodeBlockSimple <bool>] [-passcodeExpirationDays <int>]
[-passcodeMinimumCharacterSetCount <int>] [-passcodeMinimumLength <int>] [-passcodeMinutesOfInactivityBeforeLock
<int>] [-passcodePreviousPasscodeBlockCount <int>] [-passcodeRequired <bool>] [-passcodeRequiredType <string>]
[-scheduledActionsForRule <object[]>] [-securityBlockJailbrokenDevices <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -androidWorkProfileCompliancePolicy <SwitchParameter>
-deviceCompliancePolicyId <string> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description
<string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-lastModifiedDateTime <DateTimeOffset>] [-minAndroidSecurityPatchLevel <string>] [-osMaximumVersion
<string>] [-osMinimumVersion <string>] [-passwordExpirationDays <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>] [-securityBlockJailbrokenDevices
<bool>] [-securityDisableUsbDebugging <bool>] [-securityPreventInstallAppsFromUnknownSources <bool>]
[-securityRequireCompanyPortalAppIntegrity <bool>] [-securityRequireGooglePlayServices <bool>]
[-securityRequireSafetyNetAttestationBasicIntegrity <bool>] [-securityRequireSafetyNetAttestationCertifiedDevice
<bool>] [-securityRequireUpToDateSecurityProviders <bool>] [-securityRequireVerifyApps <bool>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -androidCompliancePolicy <SwitchParameter>
-deviceCompliancePolicyId <string> [-assignments <object[]>] [-createdDateTime <DateTimeOffset>] [-description
<string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>] [-deviceStatusOverview <object>]
[-deviceThreatProtectionEnabled <bool>] [-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName
<string>] [-lastModifiedDateTime <DateTimeOffset>] [-minAndroidSecurityPatchLevel <string>] [-osMaximumVersion
<string>] [-osMinimumVersion <string>] [-passwordExpirationDays <int>] [-passwordMinimumLength <int>]
[-passwordMinutesOfInactivityBeforeLock <int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired
<bool>] [-passwordRequiredType <string>] [-scheduledActionsForRule <object[]>] [-securityBlockJailbrokenDevices
<bool>] [-securityDisableUsbDebugging <bool>] [-securityPreventInstallAppsFromUnknownSources <bool>]
[-securityRequireCompanyPortalAppIntegrity <bool>] [-securityRequireGooglePlayServices <bool>]
[-securityRequireSafetyNetAttestationBasicIntegrity <bool>] [-securityRequireSafetyNetAttestationCertifiedDevice
<bool>] [-securityRequireUpToDateSecurityProviders <bool>] [-securityRequireVerifyApps <bool>]
[-storageRequireEncryption <bool>] [-userStatuses <object[]>] [-userStatusOverview <object>] [-version <int>]
[<CommonParameters>]
Update-DeviceManagement_DeviceCompliancePolicies -deviceCompliancePolicyId <string> -ODataType <string>
[-assignments <object[]>] [-bitLockerEnabled <bool>] [-codeIntegrityEnabled <bool>] [-createdDateTime
<DateTimeOffset>] [-description <string>] [-deviceSettingStateSummaries <object[]>] [-deviceStatuses <object[]>]
[-deviceStatusOverview <object>] [-deviceThreatProtectionEnabled <bool>]
[-deviceThreatProtectionRequiredSecurityLevel <string>] [-displayName <string>]
[-earlyLaunchAntiMalwareDriverEnabled <bool>] [-firewallBlockAllIncoming <bool>] [-firewallEnabled <bool>]
[-firewallEnableStealthMode <bool>] [-lastModifiedDateTime <DateTimeOffset>] [-managedEmailProfileRequired <bool>]
[-minAndroidSecurityPatchLevel <string>] [-mobileOsMaximumVersion <string>] [-mobileOsMinimumVersion <string>]
[-osMaximumVersion <string>] [-osMinimumVersion <string>] [-passcodeBlockSimple <bool>] [-passcodeExpirationDays
<int>] [-passcodeMinimumCharacterSetCount <int>] [-passcodeMinimumLength <int>]
[-passcodeMinutesOfInactivityBeforeLock <int>] [-passcodePreviousPasscodeBlockCount <int>] [-passcodeRequired
<bool>] [-passcodeRequiredType <string>] [-passwordBlockSimple <bool>] [-passwordExpirationDays <int>]
[-passwordMinimumCharacterSetCount <int>] [-passwordMinimumLength <int>] [-passwordMinutesOfInactivityBeforeLock
<int>] [-passwordPreviousPasswordBlockCount <int>] [-passwordRequired <bool>] [-passwordRequiredToUnlockFromIdle
<bool>] [-passwordRequiredType <string>] [-passwordRequireToUnlockFromIdle <bool>] [-requireHealthyDeviceReport
<bool>] [-scheduledActionsForRule <object[]>] [-secureBootEnabled <bool>] [-securityBlockJailbrokenDevices <bool>]
[-securityDisableUsbDebugging <bool>] [-securityPreventInstallAppsFromUnknownSources <bool>]
[-securityRequireCompanyPortalAppIntegrity <bool>] [-securityRequireGooglePlayServices <bool>]
[-securityRequireSafetyNetAttestationBasicIntegrity <bool>] [-securityRequireSafetyNetAttestationCertifiedDevice
<bool>] [-securityRequireUpToDateSecurityProviders <bool>] [-securityRequireVerifyApps <bool>]
[-storageRequireEncryption <bool>] [-systemIntegrityProtectionEnabled <bool>] [-userStatuses <object[]>]
[-userStatusOverview <object>] [-version <int>] [<CommonParameters>]
DESCRIPTION
Updates a "microsoft.graph.deviceCompliancePolicy" object in the "deviceCompliancePolicies" collection.
The device compliance policies.
Graph Call: PATCH ~/deviceManagement/deviceCompliancePolicies
PARAMETERS
-deviceCompliancePolicyId <string>
The ID for a "microsoft.graph.deviceCompliancePolicy" object in the "deviceCompliancePolicies" collection.
Required? true
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-createdDateTime <DateTimeOffset>
The "createdDateTime" property, of type "Edm.DateTimeOffset".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
DateTime the object was created.
Required? false
Position? named
Default value 1/1/0001 12:00:00 AM +00:00
Accept pipeline input? false
Accept wildcard characters? false
-description <string>
The "description" property, of type "Edm.String".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Admin provided description of the Device Configuration.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-lastModifiedDateTime <DateTimeOffset>
The "lastModifiedDateTime" property, of type "Edm.DateTimeOffset".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
DateTime the object was last modified.
Required? false
Position? named
Default value 1/1/0001 12:00:00 AM +00:00
Accept pipeline input? false
Accept wildcard characters? false
-displayName <string>
The "displayName" property, of type "Edm.String".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Admin provided name of the device configuration.
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.deviceCompliancePolicy" type.
Version of the device configuration.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-scheduledActionsForRule <object[]>
The "scheduledActionsForRule" property, of type "microsoft.graph.deviceComplianceScheduledActionForRule".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
The list of scheduled action for this rule
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceStatuses <object[]>
The "deviceStatuses" property, of type "microsoft.graph.deviceComplianceDeviceStatus".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
List of DeviceComplianceDeviceStatus.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-userStatuses <object[]>
The "userStatuses" property, of type "microsoft.graph.deviceComplianceUserStatus".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
List of DeviceComplianceUserStatus.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceStatusOverview <object>
The "deviceStatusOverview" property, of type "microsoft.graph.deviceComplianceDeviceOverview".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Device compliance devices status overview
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-userStatusOverview <object>
The "userStatusOverview" property, of type "microsoft.graph.deviceComplianceUserOverview".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Device compliance users status overview
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-deviceSettingStateSummaries <object[]>
The "deviceSettingStateSummaries" property, of type "microsoft.graph.settingStateDeviceSummary".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
Compliance Setting State Device Summary
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-assignments <object[]>
The "assignments" property, of type "microsoft.graph.deviceCompliancePolicyAssignment".
This property is on the "microsoft.graph.deviceCompliancePolicy" type.
The collection of assignments for this compliance policy.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-windowsPhone81CompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windowsPhone81CompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordBlockSimple <bool>
The "passwordBlockSimple" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Whether or not to block syncing the calendar.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordExpirationDays <int>
The "passwordExpirationDays" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Number of days before the password expires.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordMinimumLength <int>
The "passwordMinimumLength" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Minimum length of passwords.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordMinutesOfInactivityBeforeLock <int>
The "passwordMinutesOfInactivityBeforeLock" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Minutes of inactivity before a password is required.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordMinimumCharacterSetCount <int>
The "passwordMinimumCharacterSetCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
The number of character sets required in the password.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequiredType <string>
The "passwordRequiredType" property, of type "microsoft.graph.requiredPasswordType".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
The required password type.
Valid values: 'deviceDefault', 'alphanumeric', 'numeric'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-passwordPreviousPasswordBlockCount <int>
The "passwordPreviousPasswordBlockCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Number of previous passwords to block. Valid values 0 to 24
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequired <bool>
The "passwordRequired" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Whether or not to require a password.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-osMinimumVersion <string>
The "osMinimumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Minimum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-osMaximumVersion <string>
The "osMaximumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Maximum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-storageRequireEncryption <bool>
The "storageRequireEncryption" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windowsPhone81CompliancePolicy" type.
Require encryption on windows phone devices.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-windows81CompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windows81CompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-windows10MobileCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windows10MobileCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequireToUnlockFromIdle <bool>
The "passwordRequireToUnlockFromIdle" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require a password to unlock an idle device.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-earlyLaunchAntiMalwareDriverEnabled <bool>
The "earlyLaunchAntiMalwareDriverEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware
driver is enabled.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-bitLockerEnabled <bool>
The "bitLockerEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-secureBootEnabled <bool>
The "secureBootEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-codeIntegrityEnabled <bool>
The "codeIntegrityEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10MobileCompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-windows10CompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.windows10CompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passwordRequiredToUnlockFromIdle <bool>
The "passwordRequiredToUnlockFromIdle" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Require a password to unlock an idle device.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-requireHealthyDeviceReport <bool>
The "requireHealthyDeviceReport" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Require devices to be reported as healthy by Windows Device Health Attestation.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-mobileOsMinimumVersion <string>
The "mobileOsMinimumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Minimum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-mobileOsMaximumVersion <string>
The "mobileOsMaximumVersion" property, of type "Edm.String".
This property is on the "microsoft.graph.windows10CompliancePolicy" type.
Maximum Windows Phone version.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-macOSCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.macOSCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-systemIntegrityProtectionEnabled <bool>
The "systemIntegrityProtectionEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Require that devices have enabled system integrity protection.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-deviceThreatProtectionEnabled <bool>
The "deviceThreatProtectionEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Require that devices have enabled device threat protection.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-deviceThreatProtectionRequiredSecurityLevel <string>
The "deviceThreatProtectionRequiredSecurityLevel" property, of type
"microsoft.graph.deviceThreatProtectionLevel".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Require Mobile Threat Protection minimum risk level to report noncompliance.
Valid values: 'unavailable', 'secured', 'low', 'medium', 'high', 'notSet'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-firewallEnabled <bool>
The "firewallEnabled" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Whether the firewall should be enabled or not.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-firewallBlockAllIncoming <bool>
The "firewallBlockAllIncoming" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Corresponds to the ???????Block all incoming connections??????? option.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-firewallEnableStealthMode <bool>
The "firewallEnableStealthMode" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.macOSCompliancePolicy" type.
Corresponds to ???????Enable stealth mode.???????
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-iosCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.iosCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passcodeBlockSimple <bool>
The "passcodeBlockSimple" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Indicates whether or not to block simple passcodes.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-passcodeExpirationDays <int>
The "passcodeExpirationDays" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Number of days before the passcode expires. Valid values 1 to 65535
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeMinimumLength <int>
The "passcodeMinimumLength" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Minimum length of passcode. Valid values 4 to 14
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeMinutesOfInactivityBeforeLock <int>
The "passcodeMinutesOfInactivityBeforeLock" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Minutes of inactivity before a passcode is required.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodePreviousPasscodeBlockCount <int>
The "passcodePreviousPasscodeBlockCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Number of previous passcodes to block. Valid values 1 to 24
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeMinimumCharacterSetCount <int>
The "passcodeMinimumCharacterSetCount" property, of type "Edm.Int32".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
The number of character sets required in the password.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-passcodeRequiredType <string>
The "passcodeRequiredType" property, of type "microsoft.graph.requiredPasswordType".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
The required passcode type.
Valid values: 'deviceDefault', 'alphanumeric', 'numeric'
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-passcodeRequired <bool>
The "passcodeRequired" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Indicates whether or not to require a passcode.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityBlockJailbrokenDevices <bool>
The "securityBlockJailbrokenDevices" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Devices must not be jailbroken or rooted.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-managedEmailProfileRequired <bool>
The "managedEmailProfileRequired" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.iosCompliancePolicy" type.
Indicates whether or not to require a managed email profile.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-androidWorkProfileCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.androidWorkProfileCompliancePolicy" type.
Required? true
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityPreventInstallAppsFromUnknownSources <bool>
The "securityPreventInstallAppsFromUnknownSources" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require that devices disallow installation of apps from unknown sources.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityDisableUsbDebugging <bool>
The "securityDisableUsbDebugging" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Disable USB debugging on Android devices.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireVerifyApps <bool>
The "securityRequireVerifyApps" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the Android Verify apps feature is turned on.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-minAndroidSecurityPatchLevel <string>
The "minAndroidSecurityPatchLevel" property, of type "Edm.String".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Minimum Android security patch level.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireSafetyNetAttestationBasicIntegrity <bool>
The "securityRequireSafetyNetAttestationBasicIntegrity" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to pass the SafetyNet basic integrity check.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireSafetyNetAttestationCertifiedDevice <bool>
The "securityRequireSafetyNetAttestationCertifiedDevice" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to pass the SafetyNet certified device check.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireGooglePlayServices <bool>
The "securityRequireGooglePlayServices" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require Google Play Services to be installed and enabled on the device.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireUpToDateSecurityProviders <bool>
The "securityRequireUpToDateSecurityProviders" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to have up to date security providers. The device will require Google Play Services to be
enabled and up to date.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-securityRequireCompanyPortalAppIntegrity <bool>
The "securityRequireCompanyPortalAppIntegrity" property, of type "Edm.Boolean".
This property is on the "microsoft.graph.androidWorkProfileCompliancePolicy" type.
Require the device to pass the Company Portal client app runtime integrity check.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-androidCompliancePolicy <SwitchParameter>
A switch parameter for selecting the parameter set which corresponds to the
"microsoft.graph.androidCompliancePolicy" type.
Required? true
Position? named
Default value False
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.deviceCompliancePolicy" object in the "deviceCompliancePolicies" 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