-
-
Save drclean/6913899a036a2feadf655384b6fe395c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| configuration DSCEARegistryTest1 { | |
| param([string[]]$ComputerName='localhost') | |
| Import-DscResource -ModuleName PSDesiredStateConfiguration | |
| Node $ComputerName { | |
| Registry 'CrashOnAuditFail' { | |
| Ensure = 'Present' | |
| Key = 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa' | |
| ValueName = 'crashonauditfail' | |
| ValueType = 'Dword' | |
| ValueData = '1' | |
| } | |
| } | |
| } | |
| DSCEARegistryTest1 -OutputPath .\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment