📅  最后修改于: 2022-03-11 14:58:18.432000             🧑  作者: Mango
# Restore taskmgr.exe as Task Manager
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe\" -Name 'Debugger'
# Check if PROCEXP64.EXE is still Task Manager
if($null -eq (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe\" | Select-Object -ExpandProperty 'Debugger' -ErrorAction Stop)) {
Write-Host "taskmgr.exe successfully restored as Task Manager"
}