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:
- Connecting to Remote Registry Service
- 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 *\0\0
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.