DSCResources/Resources/windows.cAdministrativeTemplateSetting.ps1
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. $rules = Get-RuleClassData -StigData $stigData -Name RegistryRule foreach ($rule in $rules) { if ($rule.Key -match "^HKEY_CURRENT_USER") { $valueData = $rule.ValueData.Split("{;}") cAdministrativeTemplateSetting (Get-ResourceTitle -Rule $rule) { PolicyType = 'User' KeyValueName = $rule.Key + '\' + $rule.ValueName Data = $valueData Type = $rule.ValueType Ensure = $rule.Ensure } } } |