Registry examples
Please check that our examples actually work for your purpose before using them. As the registry can be changed by other applications and the operating system at any time (e.g. after updates), we cannot guarantee the correctness of the examples listed here.
Default printer
Path | HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows |
---|---|
Value name | Device |
Installed printer
Path | HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PrinterPorts |
---|---|
Value name | <Name of the target printer> |
Computername
Path | HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName |
---|---|
Value name | ComputerName |
Username
Path | HKEY_CURRENT_USER\Volatile Environment |
---|---|
Value name | Username |
Windows name
Path | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion |
---|---|
Value name | ProductName |
Environment variables
User
Path | HKEY_CURRENT_USER\Environment |
---|---|
Value name | <Name of the target environment variable> |
Computer
Path | HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment |
---|---|
Value name | <Name of the target environment variable> |
Installed software
Please note that the application ID is assigned by the respective software manufacturer and may therefore differ from system to system.
32 bit
Path | HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\<Application ID> |
---|---|
Value name | DisplayName |
64 bit
Path | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\<Application ID> |
---|---|
Value name | DisplayName |