Skip to content

DSC resource to apply a registry setting in the user registry key of all registerd users on the server.

License

Notifications You must be signed in to change notification settings

Crombell95/UserRegistryDSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserRegistryDSC

This module contains a custom DSC resource for configuring user registry settings. Normally the DSC configuration will only change the HKCU setting under the SYSTEM account. This resource works around this limitation by enumerating all registered users from the ProfileList and sets the value in each HKU.

Changelog

For an overview of what has been changed, please refer to the Changelog.

DSC Resources

UserRegistry

Apply a registry setting in the user registry key of all registerd users on the server.

Examples

Configuration UserRegistry {
    Import-DscResource -ModuleName UserRegistryDSC

    # Example from CIS Microsoft Windows Server 2019 Benchmark - V1.3.0
    # 19.7.47.2.1 (L2) Ensure 'Prevent Codec Download' is set to 'Enabled'
    node localhost {
        UserRegistry PreventCodecDownload {
            Key       = "HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer"
            ValueName = 'PreventCodecDownload'
            ValueType = 'Dword'
            ValueData = 1
        }
    }
}

About

DSC resource to apply a registry setting in the user registry key of all registerd users on the server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published