Skip to content

Commit

Permalink
feat(procexp): prompt for pcw service
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jun 13, 2024
1 parent a775681 commit eb5b7e8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ if %ERRORLEVEL% NEQ 0 (
echo Configuring Process Explorer...
:: Run Process Explorer only in one instance
reg add "HKCU\SOFTWARE\Sysinternals\Process Explorer" /v "OneInstance" /t REG_DWORD /d "1" /f > nul
sc config pcw start=disabled > nul
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskmgr.exe" /v "Debugger" /t REG_SZ /d "%windir%\AtlasModules\Apps\ProcessExplorer\procexp.exe" /f > nul

echo The 'pcw' service in Windows is needed for Task Manager and performance counters.
echo Disabling it matters less as you have Process Explorer, but software and Windows might have unexpected issues.
choice /c:yn /n /m "Would you like to disable it? [Y/N] "
sc config pcw start=disabled > nul

echo]
echo Finished, changes have been applied.
pause
Expand Down

0 comments on commit eb5b7e8

Please sign in to comment.