Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created January 8, 2017 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjyoung1974/52a321cb8c98adddffbde1f0f146b130 to your computer and use it in GitHub Desktop.
Save gjyoung1974/52a321cb8c98adddffbde1f0f146b130 to your computer and use it in GitHub Desktop.
/**
* Gordon Young gjyoung1974@gmail.com
* Windows Registry Write template
*/
// Instantiate a Windows Shell
var objShell = new ActiveXObject("WScript.Shell");
//disable DisableWindowsConsumerFeature
objShell.RegWrite("HKEY_LOCAL_MACHINE\\Software\\Policies\\Microsoft\\Windows\\System\\AllowDomainPINLogon", 0, "REG_DWORD");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment