Upload files to "CVE-2022-30190"
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,2 @@
|
||||
regedit.exe /S "$env:windir\Registry-Backup\ms-msdt.reg"
|
||||
regedit.exe /S "$env:windir\Registry-Backup\search-ms.reg"
|
||||
Reference in New Issue
Block a user