Skip to main content

Windows Registry Key Query


Display the content of the requested Windows registry key.

Supported registry key types:

  • String
  • DWORD (displayed in upper-case 0x hex)

Sample Configuration#

"type": "winreg",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#ffffff",
"background": "#444444",
"properties": {
"path": "HKLM\\software\\microsoft\\windows nt\\currentversion",
"template":"{{ if .Value }}{{ .Value }}{{ else }}unknown{{ end }}",
"prefix": " \uE62A "


  • path: string - registry path to the desired key using backslashes and with a valid root HKEY name.
  • key: string - the key to read from the path location.
  • fallback: string - the value to fall back to if no entry is found
  • template: string - a go text/template template extended with sprig utilizing the properties below.

Template Properties#

  • .Value: string - The result of your query