-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
winprefs.1
53 lines (43 loc) · 1.28 KB
/
winprefs.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.TH winprefs 1 "November 2023" "winprefs 0.2.1" "User Commands"
.SH Name
.P
winprefs \- a registry exporter for programmers.
.SH SYNOPSIS
.B winprefs [options] REG_PATH
.SH DESCRIPTION
.P
Dumps or displays a registry path in various formats, such as PowerShell, C#, C, and "reg add"
for use in cmd or similar contexts.
.SH OPTIONS
.P
No options are required.
-F, --format=FORMAT
Format to output. Options: c, cs, c#, ps, ps1, powershell, reg. Default: reg.
-K, --deploy-key
Deploy key for committing and pushing. Requires -c/-commit.
-c, --commit
Commit changes.
-d, --debug
Enable debug logging.
-f, --output-file
Output filename.
-m, --max-depth=INT
Set maximum depth.
-o, --output-dir
Output directory.
-h, --help
Display help and exit.
.SH EXAMPLES
.B Dump WindowMetrics as C Code
.P
$ winprefs HKCU:\\Control Panel\\Desktop\\WindowMetrics
data = { 0xee, 0xff, 0xff, 0xff, /* ... */}; RegSetKeyValue(HKEY_CURRENT_USER,
TEXT("Control Panel\\\\Desktop\\\\WindowMetrics"), TEXT("CaptionFont"), REG_BINARY,
(LPCVOID)&data, 92);
.P
Note that new lines are added here for display purposes only.
.P
.B Dump a single value
.P
$ winprefs HKCU:\\Environment\\OneDrive
reg add "HKCU\\Environment\\OneDrive" /v "OneDrive" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\\OneDrive" /f