You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for the super nice script you had created.
For my cases I try to assign a binary key value of "080000000000000001000000020000000300000004000000050000000600000007000000"
In the end, the it give me an error
Set-ItemProperty : Cannot convert value "080000000000000001000000020000000300000004000000050000000600000007000000" to type "System.Byte[]". Error: "Cannot convert value
"080000000000000001000000020000000300000004000000050000000600000007000000" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte.""
At line:34 char:17
I check some post and stated need to manually hexified the binary
$regKeyValue = "08,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,00,00,04,00,00,00,05,00,00,00,06,00,00,00,07,00,00,00"
$hexified = $regKeyValue.Split(',') | ForEach-Object { "0x$_"}
After I done it, the error doesn't come out anymore but in the stubpath the registry key was showing System.Byte[] instead of the actual value.
I wonder where registry editor actually store those value at
First of all, thanks for the super nice script you had created.
For my cases I try to assign a binary key value of "080000000000000001000000020000000300000004000000050000000600000007000000"
In the end, the it give me an error
Set-ItemProperty : Cannot convert value "080000000000000001000000020000000300000004000000050000000600000007000000" to type "System.Byte[]". Error: "Cannot convert value
"080000000000000001000000020000000300000004000000050000000600000007000000" to type "System.Byte". Error: "Value was either too large or too small for an unsigned byte.""
At line:34 char:17
The text was updated successfully, but these errors were encountered: