Aller au contenu principal

Requête de clé de registre Windows

Traduction Bêta Non Officielle

Cette page a été traduite par PageTurner AI (bêta). Non approuvée officiellement par le projet. Vous avez trouvé une erreur ? Signaler un problème →

Description

Affiche le contenu de la clé de registre Windows demandée.

Types de clés de registre pris en charge :

  • SZ (affichée comme valeur chaîne)

  • EXPAND_SZ (affichée comme valeur chaîne)

  • BINARY (affichée comme valeur chaîne)

  • DWORD (affichée en hexadécimal majuscule avec préfixe 0x)

  • QWORD (affichée en hexadécimal majuscule avec préfixe 0x)

Exemple de configuration

{
"type": "winreg",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#444444",
"template": "  {{ .Value }}",
"options": {
"path": "HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab",
"fallback": "unknown"
}
}

Options

NameTypeDefaultDescription
pathstringregistry path to the desired key using backslashes and with a valid root HKEY name. Ending path with \ will get the (Default) key from that path
fallbackstringthe value to fall back to if no entry is found

Modèle (info)

template par défaut
 {{ .Value }}

Propriétés

NameTypeDescription
.ValuestringThe result of your query, or fallback if not found.