Created
March 21, 2017 19:27
-
-
Save rkyttle/f5a8a4c0ac0c97708d7bb72fb2164f33 to your computer and use it in GitHub Desktop.
This file contains 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