Upload files to "CVE-2022-30190"

This commit is contained in:
2026-03-23 05:07:25 +00:00
commit 484e1841d9
2 changed files with 18 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
if (!(Test-Path -Path "$env:windir\Registry-Backup")) {
New-Item -Path "$env:windir\Registry-Backup" -ItemType Directory -Force | Out-Null
}
Start-Process -FilePath "regedit.exe " `
-ArgumentList "/E `"$env:windir\Registry-Backup\ms-msdt.reg`" `"HKEY_CLASSES_ROOT\ms-msdt`"" `
-WindowStyle Hidden `
-Wait
Start-Process -FilePath "regedit.exe " `
-ArgumentList "/E `"$env:windir\Registry-Backup\search-ms.reg`" `"HKEY_CLASSES_ROOT\search-ms`"" `
-WindowStyle Hidden `
-Wait
Remove-Item -Path "registry::HKEY_CLASSES_ROOT\ms-msdt" -Force -Recurse
Remove-Item -Path "registry::HKEY_CLASSES_ROOT\search-ms" -Force -Recurse