Skip to content

Instantly share code, notes, and snippets.

@frayos
Created February 5, 2018 13:04
Show Gist options
  • Save frayos/69fe2f3fa1990478f26c289baf7ca083 to your computer and use it in GitHub Desktop.
Save frayos/69fe2f3fa1990478f26c289baf7ca083 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