On Monday May 30, 2022, Microsoft issued CVE-2022-30190 regarding the Microsoft Support Diagnostic Tool (MSDT) in Windows vulnerability.
A remote code execution vulnerability exists when MSDT is called using the URL protocol from a calling application such as Word. An attacker who successfully exploits this vulnerability can run arbitrary code with the privileges of the calling application. The attacker can then install programs, view, change, or delete data, or create new accounts in the context allowed by the user’s rights.
This script will do a backup of the registry in %WINDIR%\system32\eventsentry\VSBack\CVE-2022-30190-Back.reg and delete the registry key "HKEY_CLASSES_ROOT\ms-msdt" as suggested by Microsoft Workaround.