Share via

ERROR: Invalid syntax.

Anonymous
2020-10-03T00:25:34+00:00

Hello, I'm making a Script that Edits the SystemResponsiveness DWord in the Registry Editor Using a Batch File when I Run the file I get ERROR: Invalid syntax, I cant seem to find out why Hence why I'm here And yes I am running it in Administrator. Anyway here is the line:

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile /v SystemResponsiveness /t REG_DWORD /d 0 /f

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2020-10-03T00:34:36+00:00

Hi and thanks for reaching out. My name is William. I'm a Microsoft Windows Certified Professional and Systems Administrator. I'll be happy to help you out today.

Since the reg path contains a space, you need to enclose it with quotes: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /v SystemResponsiveness /t REG_DWORD /d 0 /f

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2020-10-03T00:49:00+00:00

    Thanks, William, this has Fixed the Issue I was having.

    Was this answer helpful?

    0 comments No comments