platform/policy/registry-export
Interfaces
Section titled “Interfaces”RegistryKey
Section titled “RegistryKey”Defined in: app/src/platform/policy/registry-export.ts:12
One key of a reg export file with its values.
Properties
Section titled “Properties”
readonlypath:string
Defined in: app/src/platform/policy/registry-export.ts:14
Full path, such as HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Astela.
unsupported
Section titled “unsupported”
readonlyunsupported: readonlystring[]
Defined in: app/src/platform/policy/registry-export.ts:17
Values of types that policies do not use, such as REG_BINARY.
values
Section titled “values”
readonlyvalues:ReadonlyMap<string,RegistryValue>
Defined in: app/src/platform/policy/registry-export.ts:15
Type Aliases
Section titled “Type Aliases”RegistryValue
Section titled “RegistryValue”RegistryValue =
string|number|bigint| readonlystring[]
Defined in: app/src/platform/policy/registry-export.ts:9
A value in a registry key, converted to a plain value.
Functions
Section titled “Functions”parseRegistryExport()
Section titled “parseRegistryExport()”parseRegistryExport(
text):RegistryKey[]
Defined in: app/src/platform/policy/registry-export.ts:26
Parses the text of a reg export file (format “Windows Registry Editor Version 5.00”).
Supports strings, dword, hex(b) (QWORD), hex(2) (expandable string) and hex(7)
(multi-string). Other types are listed as unsupported.
Parameters
Section titled “Parameters”string
File content, already decoded from UTF-16LE.
Returns
Section titled “Returns”registryPolicies()
Section titled “registryPolicies()”registryPolicies(
keys,root,scope):PolicyReadResult
Defined in: app/src/platform/policy/registry-export.ts:60
Converts the keys below a policy root into raw policy values. Values of the root key are
mandatory and values of its Recommended subkey are recommended. A subkey named after a
policy holds a list, with values named 1, 2, … in order.
Parameters
Section titled “Parameters”readonly RegistryKey[]
Parsed keys of one hive.
string
Policy root path inside the hive, such as SOFTWARE\Policies\Astela.
machine for HKLM, user for HKCU.