Skip to content

Instantly share code, notes, and snippets.

@D00MFist
Created April 14, 2020 17:41
Show Gist options
  • Save D00MFist/b6433f89ee4c20bfc197bf7029770ff8 to your computer and use it in GitHub Desktop.
Save D00MFist/b6433f89ee4c20bfc197bf7029770ff8 to your computer and use it in GitHub Desktop.
MicrosoftSignedOnly
get-process | select -exp processname -Unique | % { Get-ProcessMitigation -ErrorAction SilentlyContinue -RunningProcesses $_ | select processname, Id, @{l="Block non-MS Binaries"; e={$_.BinarySignature|select -exp MicrosoftSignedOnly}}} 2> $null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment