Skip to content

Instantly share code, notes, and snippets.

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 Patrick-Kelley/c8d67e32c504d4af67346dc576a1619b to your computer and use it in GitHub Desktop.
Save Patrick-Kelley/c8d67e32c504d4af67346dc576a1619b to your computer and use it in GitHub Desktop.
CVE-2022-30190 Microsoft Support Diagnostic Tool Vulnerability - Ansible - Removal Playbook
- name: Remove MS-MSDT Key
hosts: win-test
gather_facts: false
tasks:
- win_command: powershell.exe -
args:
stdin: reg export HKCR\ms-msdt c:\msdt-export.reg
- win_command: powershell.exe -
args:
stdin: reg delete HKEY_CLASSES_ROOT\ms-msdt /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment