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�
The above registry key includes the following values in right pane:
�
��� systembootdevice���� REG_SZ��������� multi(0)disk(0)rdisk(0)partition(1)
��� systemstartoptions��� REG_SZ��������� NOEXECUTE=ALWAYSOFF� FASTDETECT
�
To check on a Remote Computer:�
You can use the below script to check the LogPath and Tasks Folder on a remote computer:
�
@echo off
�
Srvlist=C:\Temp\Srvlist.txt
�
Echo Computer Name, System Boot Partition, BOOT.INI Options >> Result.csv
�
SET Sys_Part=
SET Boot_Option=
�
For /F �Tokens=*� %%a In (%srvlist%) Do (
�
Set Comp_name=%%a
�
Set RegQry=�\\%%a\HKLM\System\CurrentControlSet\Control� /v SystemBootDevice
Set RegQry1=�\\%%a\HKLM\System\CurrentControlSet\Control� /v SystemStartOptions
�
REG.exe Query %RegQry% > CheckCC.txt
REG.exe Query %RegQry1% > CheckCC1.txt
�
Find /i "SystemBootDevice" < CheckCC.txt > StringCheck.txt
�
FOR /f �Tokens=3� %%b in (CheckCC.txt) DO SET Sys_Part=%%b
�
Find /i "SystemStartOptions" < CheckCC1.txt > StringCheck.txt
�
FOR /f �Tokens=3� %%b in (CheckCC1.txt) DO SET Boot_Option=%%b
�
Echo %Comp_name, %Sys_Part%, %Boot_Option% >> Result.csv
�
)
�
The above script will check remote computer for two registry entries for System Boot Partition and System Start Options and the results will be saved in a CSV format file.
�
�