shell command off
reg delete “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU” /va /f; powershell -Command “Set-ItemProperty -Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced’ -Name ‘Start_TrackProgs’ -Value 0”; taskkill /f /im explorer.exe; start explorer.exe
shell command on
powershell -Command “Set-ItemProperty -Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced’ -Name ‘Start_TrackProgs’ -Value 1”; taskkill /f /im explorer.exe; start explorer.exe
Run_History_OFF.bat
@echo off
:: Admin permission check
net session >nul 2>&1
if %errorLevel% == 0 (
echo System ki privacy settings update ho rahi hain…
:: Run history ko mita raha hai
reg delete “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU” /va /f
:: Tracking switch ko OFF (0) kar raha hai
powershell -Command “Set-ItemProperty -Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced’ -Name ‘Start_TrackProgs’ -Value 0”
:: Explorer ko restart kar raha hai settings apply karne ke liye
taskkill /f /im explorer.exe
start explorer.exe
echo.
echo [MUBARAK HO] Run History OFF ho chuki hai!
) else (
echo ERROR: Baraye meharbani is file par Right-Click karein aur ‘Run as Administrator’ chunein.
)
pause
Run_History_ON.bat
@echo off
:: Admin permission check
net session >nul 2>&1
if %errorLevel% == 0 (
echo System ki history settings wapis ON ho rahi hain…
:: Tracking switch ko ON (1) kar raha hai
powershell -Command “Set-ItemProperty -Path ‘HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced’ -Name ‘Start_TrackProgs’ -Value 1”
:: Explorer ko restart kar raha hai
taskkill /f /im explorer.exe
start explorer.exe
echo.
echo [DONE] Run History dobara ON ho chuki hai.
) else (
echo ERROR: Baraye meharbani is file par Right-Click karein aur ‘Run as Administrator’ chunein.
)
pause