@REGSET?

May 20, 2008
12,331
134
Syracuse, NY, USA
On Windows10/x64, what's wrong here?

Code:
v:\> echo %@regquery[hklm\system\currentcontrolset\services\w32time\w32tmparams\weighthigh]
546

v:\> echo %@regset[hklm\system\currentcontrolset\services\w32time\w32tmparams\weighthigh,reg_dword,546]
TCC: (Sys) The parameter is incorrect.
 "%@regset[reg_dword,546]"
 
(Doh!) It works a little better if I do it elevated. But then I'd expect the failing one to give "Access denied" and not remove the key name from the error string.