ComputerName Registry Key
Last updated
Last updated
Windows 11
✅
Server 2019
✅
Windows 10
✅
Server 2016
✅
Windows 8
✅
Server 2012
✅
Windows 7
✅
Server 2008
File: %SystemRoot%\System32\config\SYSTEM
Key: SYSTEM\{CURRENT_CONTROL_SET}\Control\ComputerName\ComputerName
RegistryExplorer (Eric Zimmerman)
The ComputerName
value's data field will provide the system's configured Computer Name.
This example was produced on Windows 10, Version 10.0.19044 Build 19044
PS> Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName" -Name *
ComputerName : HLPC01
✅
Windows Vista
✅
Server 2003
✅
Windows XP
✅