Skip to content

Instantly share code, notes, and snippets.

@invokethreatguy
Forked from frayos/credentialGuard.ps1
Created November 5, 2023 20:40
Show Gist options
  • Save invokethreatguy/2ac5155c84c5c147b19efd92865ff159 to your computer and use it in GitHub Desktop.
Save invokethreatguy/2ac5155c84c5c147b19efd92865ff159 to your computer and use it in GitHub Desktop.
Credential Guard checker Powershell
$DevGuard = Get-CimInstance –ClassName Win32_DeviceGuard –Namespace root\Microsoft\Windows\DeviceGuard
if ($DevGuard.SecurityServicesConfigured -contains 1) {"Credential Guard configured"}
if ($DevGuard.SecurityServicesRunning -contains 1) {"Credential Guard running"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment