How to make sure AutoCheck is enabled on Remote Computer

The following knowledgebase will explain the methods you can use to check the AutoCheck registry entry on local and remote computer.

To check on local computer:

You can use the following methods:

  1. Connecting to Remote Registry Service
  2. Using a script

The first method is easy but includes a lot of efforts. You can navigate to the following location in registry after connecting to remote registry:

HKLM\System\CurrentControlSet\Control\Session Manager

The above registry key includes the following values in right pane:

bootexecute REG_MULTI_SZ autocheck autochk *

To check on a Remote Computer:

You can use the below script to check the Processor Vendor and MHz speed on a remote computer:

@echo off

Srvlist=C:\Temp\Srvlist.txt

Echo Computer Name, Boot Check Enabled? >> Result.csv

SET Boot_Chk=

For /F “Tokens=*” %%a In (%srvlist%) Do (

Set Comp_name=%%a

Set RegQry=”\\%%a\HKLM\system\currentcontrolset\control\session manager” /v bootexecute

REG.exe Query %RegQry% > CheckCC.txt

Find /i “autocheck autochk” < CheckCC.txt > StringCheck.txt

If %errorlevel% == 0 (

SET Boot_Chk=Enabled

) ELSE (

SET Boot_Chk=Disabled

)

Echo %Comp_name, %Boot_Chk% >> Result.csv

)

The above script will check remote computer for one registry entry for Boot Check and the results will be saved in a CSV format file.

Leave a Reply

Your email address will not be published. Required fields are marked *