Closed erwinwildenburg closed 7 years ago
The following DSC code doesn't work because there are forward slashes in the KeyValueName:
cAdministrativeTemplateSetting test { Ensure = "Present" PolicyType = "Machine" KeyValueName = "Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey\https://*.example.com" Type = "String" Data = "2" }
The code before this change split the above code in the following:
$key = "Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey\https:\" $valueName = "*.example.com"
But it should be:
$key = "Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey" $valueName = "https://*.example.com"
Thanks!
The following DSC code doesn't work because there are forward slashes in the KeyValueName:
The code before this change split the above code in the following:
But it should be: