Advertisement
illwill

Credential Guard check for win10/2k16

Jul 3rd, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $DevGuard = Get-CimInstance –ClassName Win32_DeviceGuard –Namespace root\Microsoft\Windows\DeviceGuard
  2. if ($DevGuard.SecurityServicesConfigured -contains 1) {"Credential Guard configured"}
  3. if ($DevGuard.SecurityServicesRunning -contains 1) {"Credential Guard running"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement