Skip to content

Commit

Permalink
Merge pull request #4976 from ricmestre/compliance
Browse files Browse the repository at this point in the history
IntuneDeviceCompliancePolicyWindows10: Fix extraction of property `TpmRequired`
  • Loading branch information
ykuijs committed Aug 21, 2024
2 parents c24165e + c0a9552 commit 6758488
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
* IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy
* Fixed issue if `PasswordComplexity` was set to 5 by allowing that value
FIXES [#4963](https://github.com/microsoft/Microsoft365DSC/issues/4963)
* IntuneDeviceCompliancePolicyWindows10
* Fix extraction of property `TpmRequired`
* IntuneDeviceConfigurationCustomPolicyWindows10
* Change app and delegated permissions for reading to
DeviceManagementConfiguration.ReadWrite.All to cope with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Get-TargetResource

[Parameter()]
[System.Boolean]
$TPMRequired,
$TpmRequired,

[Parameter()]
[System.String]
Expand Down Expand Up @@ -247,7 +247,7 @@ function Get-TargetResource
DeviceThreatProtectionEnabled = $devicePolicy.AdditionalProperties.deviceThreatProtectionEnabled
DeviceThreatProtectionRequiredSecurityLevel = $devicePolicy.AdditionalProperties.deviceThreatProtectionRequiredSecurityLevel
ConfigurationManagerComplianceRequired = $devicePolicy.AdditionalProperties.configurationManagerComplianceRequired
TPMRequired = $devicePolicy.AdditionalProperties.tPMRequired
TpmRequired = $devicePolicy.AdditionalProperties.tpmRequired
DeviceCompliancePolicyScript = $devicePolicy.AdditionalProperties.deviceCompliancePolicyScript
ValidOperatingSystemBuildRanges = $devicePolicy.AdditionalProperties.validOperatingSystemBuildRanges
Ensure = 'Present'
Expand Down Expand Up @@ -418,7 +418,7 @@ function Set-TargetResource

[Parameter()]
[System.Boolean]
$TPMRequired,
$TpmRequired,

[Parameter()]
[System.String]
Expand Down Expand Up @@ -694,7 +694,7 @@ function Test-TargetResource

[Parameter()]
[System.Boolean]
$TPMRequired,
$TpmRequired,

[Parameter()]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MSFT_IntuneDeviceCompliancePolicyWindows10 : OMI_BaseResource
[Write, Description("DeviceThreatProtectionEnabled of the Windows 10 device compliance policy.")] Boolean DeviceThreatProtectionEnabled;
[Write, Description("DeviceThreatProtectionRequiredSecurityLevel of the Windows 10 device compliance policy."), ValueMap{"Unavailable","Secured","Low", "Medium","High","NotSet"}, Values{"Unavailable","Secured","Low", "Medium","High","NotSet"}] String DeviceThreatProtectionRequiredSecurityLevel;
[Write, Description("ConfigurationManagerComplianceRequired of the Windows 10 device compliance policy.")] Boolean ConfigurationManagerComplianceRequired;
[Write, Description("TPMRequired of the Windows 10 device compliance policy.")] Boolean TPMRequired;
[Write, Description("TpmRequired of the Windows 10 device compliance policy.")] Boolean TpmRequired;
[Write, Description("DeviceCompliancePolicyScript of the Windows 10 device compliance policy.")] String DeviceCompliancePolicyScript;
[Write, Description("ValidOperatingSystemBuildRanges of the Windows 10 device compliance policy.")] String ValidOperatingSystemBuildRanges[];
[Write, Description("Present ensures the policy exists, absent ensures it is removed."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] string Ensure;
Expand Down

0 comments on commit 6758488

Please sign in to comment.