Skip to content

platform/policy/registry-export

Defined in: app/src/platform/policy/registry-export.ts:12

One key of a reg export file with its values.

readonly path: string

Defined in: app/src/platform/policy/registry-export.ts:14

Full path, such as HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Astela.

readonly unsupported: readonly string[]

Defined in: app/src/platform/policy/registry-export.ts:17

Values of types that policies do not use, such as REG_BINARY.

readonly values: ReadonlyMap<string, RegistryValue>

Defined in: app/src/platform/policy/registry-export.ts:15

RegistryValue = string | number | bigint | readonly string[]

Defined in: app/src/platform/policy/registry-export.ts:9

A value in a registry key, converted to a plain value.

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.

string

File content, already decoded from UTF-16LE.

RegistryKey[]


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.

readonly RegistryKey[]

Parsed keys of one hive.

string

Policy root path inside the hive, such as SOFTWARE\Policies\Astela.

PolicyScope

machine for HKLM, user for HKCU.

PolicyReadResult