Reg.exe 没有按预期设置二进制值
Reg.exe not setting binary value as expected
严格来说不是 Powershell,但它位于其中。我正在尝试添加此注册表项以隐藏任务栏:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2]
"Settings"=hex:28,00,00,00,ff,ff,ff,ff,03,00,00,00,03,00,00,00,3e,00,00,00,1e,
00,00,00,00,00,00,00,66,03,00,00,40,06,00,00,84,03,00,00
我正在使用:
reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /v Settings /T REG_BINARY /d '30 00 00 00 fe ff ff ff 03 02 00 00 03 00 00 00 3e 00 00 00 28 00 00 00 00 00 00 00 5c 03 00 00 a0 05 00 00 84 03 00 00 60 00 00 00 01 00 00 00' /f
但是添加后,十六进制值不会转换为上述预期值。如果我遗漏了什么或添加不正确,有什么想法吗?
干杯
不要在字节之间放置空格。
See the documentation examples.
reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3"
/v Settings
/T REG_BINARY
/d 30000000feffffff03020000030000003e00000028000000000000005c030000a0050000840300006000000001000000
/f
为了便于阅读,上面添加了换行符,但那是一行。
严格来说不是 Powershell,但它位于其中。我正在尝试添加此注册表项以隐藏任务栏:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2]
"Settings"=hex:28,00,00,00,ff,ff,ff,ff,03,00,00,00,03,00,00,00,3e,00,00,00,1e,
00,00,00,00,00,00,00,66,03,00,00,40,06,00,00,84,03,00,00
我正在使用:
reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" /v Settings /T REG_BINARY /d '30 00 00 00 fe ff ff ff 03 02 00 00 03 00 00 00 3e 00 00 00 28 00 00 00 00 00 00 00 5c 03 00 00 a0 05 00 00 84 03 00 00 60 00 00 00 01 00 00 00' /f
但是添加后,十六进制值不会转换为上述预期值。如果我遗漏了什么或添加不正确,有什么想法吗?
干杯
不要在字节之间放置空格。
See the documentation examples.
reg.exe Add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3"
/v Settings
/T REG_BINARY
/d 30000000feffffff03020000030000003e00000028000000000000005c030000a0050000840300006000000001000000
/f
为了便于阅读,上面添加了换行符,但那是一行。