Há um pequeno erro de digitação: aspas duplas ausentes:
reg add "HKLM\ … \FxProperties /f /v …
|<-------- here
reg add "HKLM\ … \FxProperties" /f /v …
Para uma maravilha, reg query
e reg add
levantam outro erro no caso de um erro de sintaxe tão simples:
==> reg query "HKLM\SOFTWARE\Test Key /v "{testval},1"
ERROR: The system was unable to find the specified registry key or value.
==> reg query "HKLM\SOFTWARE\Test Key" /v "{testval},1"
HKEY_LOCAL_MACHINE\SOFTWARE\Test Key
{testval},1 REG_DWORD 0x1
==> reg add "HKLM\SOFTWARE\Test Key /f /v "{testval},1" /t REG_DWORD /d "1"
ERROR: Access is denied.
==> reg add "HKLM\SOFTWARE\Test Key" /f /v "{testval},1" /t REG_DWORD /d "1"
The operation completed successfully.
==>