inspect-os cannot detect Windows hostname
30 Mar
2022
30 Mar
'22
11:08 p.m.
Hello I've faced several different cases where inspect-os cannot detect Windows hostname. I see the following message during inspect-os call (in debug mode): check_windows_system_registry: cannot locate HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters and/or Hostname key inspect-get-hostname returns 'unknown' in such case:
<fs> inspect-get-hostname /dev/sda1 unknown
However, hostname can be read using:
<fs> mount /dev/sda1 / <fs> debug sh 'hivexget /sysroot/Windows/System32/config/SYSTEM ControlSet001\\Services\\Tcpip\\Parameters hostname' MidServerNew
A sample registry hive is attached. -- Mykola Ivanets
1673
Age (days ago)
1673
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Ivanets