Created
April 12, 2023 05:02
-
-
Save Ricky-G/06cfc632486227b701cf594b7333248f to your computer and use it in GitHub Desktop.
Restore taskmgr.exe As The Default Task Manager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## You need to run this in your terminal as admin mode | |
################################################################# | |
# Restore taskmgr.exe As The Default 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 if your official Task Manager" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script is useful if you have set sysinternals process explorer as the default and would like to turn this off get the Windows task manager back as the default.