I have a PSDsc configuration that I am having a problem with:
##AH:UseTextMode
PSDsc Registry
(
Otter_ConfigurationKey: Key,
Key : "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1",
ValueName : "1601",
ValueType : 'Dword',
ValueData : "1"
);
PSDsc Registry
(
Otter_ConfigurationKey: Key,
Key : "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1",
ValueName : "2100",
ValueType : 'Dword',
ValueData : "3"
);
PSDsc Registry
(
Otter_ConfigurationKey: Key,
Key : "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3",
ValueName : "1601",
ValueType : 'Dword',
ValueData : "1"
);
PSDsc Registry
(
Otter_ConfigurationKey: Key,
Key : "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3",
ValueName : "2100",
ValueType : 'Dword',
ValueData : "3"
);
This setting ensures IE harding of the security zones, but the trouble is two of they keys are the same, and two of the valuename or valuedata are the same as well. I have tried several combinations of trying to get the key to be more dynamic, but I can't seem to be able to work with Otter_ConfigurationKey: at all:
-Tried custom name, that doesn't work, must match a dsc property.
-tried an array like @('key','valuedata') as well as (@('key','valuedata') ), no dice there. Tried adding " " and ' ' just for kicks, no luck there.
While I love guessing, I like knowing much better. Anyone have any ideas to get this to work?
Product: Otter
Version: 2.0.12