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