1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2112],{7917(e,t,s){s.r(t),s.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>x,frontMatter:()=>d,metadata:()=>n,toc:()=>o});const n=JSON.parse('{"id":"segments/system/winreg","title":"Windows Registry Key Query","description":"What","source":"@site/docs/segments/system/winreg.mdx","sourceDirName":"segments/system","slug":"/segments/system/winreg","permalink":"/docs/segments/system/winreg","draft":false,"unlisted":false,"editUrl":"https://github.com/jandedobbeleer/oh-my-posh/edit/main/website/docs/segments/system/winreg.mdx","tags":[],"version":"current","frontMatter":{"id":"winreg","title":"Windows Registry Key Query","sidebar_label":"Windows Registry Key Query"},"sidebar":"docs","previous":{"title":"WinGet","permalink":"/docs/segments/system/winget"},"next":{"title":"Web","permalink":"/docs/category/web"}}');var i=s(4848),r=s(8453),l=s(6674);const d={id:"winreg",title:"Windows Registry Key Query",sidebar_label:"Windows Registry Key Query"},a=void 0,c={},o=[{value:"What",id:"what",level:2},{value:"Sample Configuration",id:"sample-configuration",level:2},{value:"Options",id:"options",level:2},{value:"Template (info)",id:"template-info",level:2},{value:"Properties",id:"properties",level:3}];function h(e){const t={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h2,{id:"what",children:"What"}),"\n",(0,i.jsx)(t.p,{children:"Display the content of the requested Windows registry key."}),"\n",(0,i.jsx)(t.p,{children:"Supported registry key types:"}),"\n",(0,i.jsxs)(t.ul,{children:["\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"SZ"})," (displayed as string value)"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"EXPAND_SZ"})," (displayed as string value)"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"BINARY"})," (displayed as string value)"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"DWORD"})," (displayed in upper-case 0x hex)"]}),"\n",(0,i.jsxs)(t.li,{children:[(0,i.jsx)(t.code,{children:"QWORD"})," (displayed in upper-case 0x hex)"]}),"\n"]}),"\n",(0,i.jsx)(t.h2,{id:"sample-configuration",children:"Sample Configuration"}),"\n","\n",(0,i.jsx)(l.A,{data:{type:"winreg",style:"powerline",powerline_symbol:"\ue0b0",foreground:"#ffffff",background:"#444444",template:" \ue62a {{ .Value }}",options:{path:"HKLM\\software\\microsoft\\windows nt\\currentversion\\buildlab",fallback:"unknown"}}}),"\n",(0,i.jsx)(t.h2,{id:"options",children:"Options"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Name"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Type"}),(0,i.jsx)(t.th,{style:{textAlign:"center"},children:"Default"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsxs)(t.tbody,{children:[(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"path"})}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:(0,i.jsx)(t.code,{children:"string"})}),(0,i.jsx)(t.td,{style:{textAlign:"center"}}),(0,i.jsx)(t.td,{children:"registry 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"})]}),(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"fallback"})}),(0,i.jsx)(t.td,{style:{textAlign:"center"},children:(0,i.jsx)(t.code,{children:"string"})}),(0,i.jsx)(t.td,{style:{textAlign:"center"}}),(0,i.jsx)(t.td,{children:"the value to fall back to if no entry is found"})]})]})]}),"\n",(0,i.jsxs)(t.h2,{id:"template-info",children:["Template (",(0,i.jsx)(t.a,{href:"/docs/configuration/templates",children:"info"}),")"]}),"\n",(0,i.jsx)(t.admonition,{title:"default template",type:"note",children:(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-template",children:" {{ .Value }}\n"})})}),"\n",(0,i.jsx)(t.h3,{id:"properties",children:"Properties"}),"\n",(0,i.jsxs)(t.table,{children:[(0,i.jsx)(t.thead,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.th,{children:"Name"}),(0,i.jsx)(t.th,{children:"Type"}),(0,i.jsx)(t.th,{children:"Description"})]})}),(0,i.jsx)(t.tbody,{children:(0,i.jsxs)(t.tr,{children:[(0,i.jsx)(t.td,{children:".Value"}),(0,i.jsx)(t.td,{children:(0,i.jsx)(t.code,{children:"string"})}),(0,i.jsx)(t.td,{children:"The result of your query, or fallback if not found."})]})})]})]})}function x(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.