process explorer disable replace task manager
# 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"
}