NVISOsecurity / posh-dsc-windows-hardening

Windows OS Hardening with PowerShell DSC
GNU General Public License v3.0
271 stars 118 forks source link

Duplicate Resource Identifier #1

Open anuraagrijal3138 opened 4 years ago

anuraagrijal3138 commented 4 years ago

19.1.3.1 (L1) Ensure 'Enable screen saver' is set to 'Enabled'

    Registry 'ScreenSaveActive' {
        Ensure      = 'Present'
        Key         = 'HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop'
        ValueName   = 'ScreenSaveActive'
        ValueType   = 'String'
        ValueData   = '1'
    }

ScreenSaveActive is repeated two times in lines 2338 and 3833 for CIS Windows 10(CIS_Windows10_v181.ps1). It errors with duplicate resource identifier. Removing one fixes the problem.