posh-dsc-windows-hardening
posh-dsc-windows-hardening copied to clipboard
Fix duplicate AllowCrossDeviceClipboard entries
There are 2 entries named "AllowCrossDeviceClipboard", which causes a "Duplicate Resource Identifier" error.
This change gives a unique name to the second entry based on the registry key it is modifying, similar to the other entries.
Tested on AWS Windows Server 2019 AMI. Running ".\CIS_WindowsServer2019_v110.ps1" now generates the MOF file.
Fixes Issues:
- https://github.com/NVISO-BE/posh-dsc-windows-hardening/issues/2
- https://github.com/NVISO-BE/posh-dsc-windows-hardening/issues/5