Skip to content

Instantly share code, notes, and snippets.

@vinyar
Last active December 23, 2015 11:49
Show Gist options
  • Save vinyar/6630973 to your computer and use it in GitHub Desktop.
Save vinyar/6630973 to your computer and use it in GitHub Desktop.
"[System Access]" | out-file c:\delete.cfg
"PasswordComplexity = 0" | out-file c:\delete.cfg -append
"[Version]" | out-file c:\delete.cfg -append
'signature="$CHICAGO$"' | out-file c:\delete.cfg -append
secedit /configure /db C:\Windows\security\new.sdb /cfg c:\delete.cfg /areas SECURITYPOLICY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment