Get Computer Name Without boot

#Requires -RunAsAdministrator

reg load "HKLM\_SYSTEM" "D:\Windows\system32\config\system" | Out-Null

(Get-ItemProperty HKLM:\_SYSTEM\ControlSet001\Control\ComputerName\ComputerName -Name ComputerName).ComputerName

reg unload "HKLM\_SYSTEM" | Out-Null

Sources

How to find the name of a computer that wont boot - FORUM edugeek


Revision #2
Created 7 June 2020 15:00:30 by Lauris_Adm
Updated 13 October 2022 12:23:17 by Lauris_Adm