Skip to content

Instantly share code, notes, and snippets.

@mdjx
Created July 9, 2021 02:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdjx/a8b1026094c7458bde1f61e0acc4dce7 to your computer and use it in GitHub Desktop.
Save mdjx/a8b1026094c7458bde1f61e0acc4dce7 to your computer and use it in GitHub Desktop.
PrintNightmare Registry Settings
"UpdatePromptSettings","NoWarningNoElevationOnInstall" | % {if ((Get-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint" -ErrorAction SilentlyContinue).$_ -match "1|2") { Write-Warning "Vulnerable via $_" }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment