Skip to content

Instantly share code, notes, and snippets.

@rkyttle
Created March 21, 2017 19:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rkyttle/f5a8a4c0ac0c97708d7bb72fb2164f33 to your computer and use it in GitHub Desktop.
Save rkyttle/f5a8a4c0ac0c97708d7bb72fb2164f33 to your computer and use it in GitHub Desktop.
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