Skip to content

Instantly share code, notes, and snippets.

@0fflineDocs
Created April 11, 2021 09:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save 0fflineDocs/9f9c59346992c242d615d933c9d0ad14 to your computer and use it in GitHub Desktop.
SecurityPosture -Help
[HELP]
The script will write entries to a log file residing at the client at this location: (C:\Windows\Temp\Client-SecurityPosture.log)
You can query this script using indvidual switches and choose which ones you want to use:
SecurityPosture -OS -TPMStatus -Bitlocker -UEFISECBOOT -Defender -DefenderforEndpoint -MAPS -ApplicationGuard
-Sandbox -CredentialGuardPreReq -CredentialGuard -DeviceGuard -AttackSurfaceReduction -ControlledFolderAccess
You can also query every switch in this script using a global switch which includes all available options:
SecurityPosture -All
Each switch can also be queried separately as a function:
Get-BitLocker (returns information about Bitlocker in the PC)
Get-OperatingSystem (returns the current PCs OS-Edition, Architecture, Version, and Buildnumber.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment