Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save interference-security/18fdd6f50d71714c9d3283baed2fe74e to your computer and use it in GitHub Desktop.
Save interference-security/18fdd6f50d71714c9d3283baed2fe74e to your computer and use it in GitHub Desktop.
Disable Device Guard and Virtualization Based Security
#SCRIPT TO DISABLE DEVICE GUARD & VIRTUALIZATION BASED SECURITY
#https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment