"Invalid command-line parameters" for REG ADD command

I'm trying to run the following "reg add" command, and I'm getting "Invalid command-line paramters".  

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v KeepAliveTimeout /t REG_DWORD /d 0001d4c0 /f

I think I have all of the right switches and quotes in the right places, but I can't seem to get this to run.  If anyone can help, I would appreciate it.
acsadamsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve KnightIT ConsultancyCommented:
It looks Ok to me except as this is a DWORD value you will need to put 0x before the value, i.e. try this:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v KeepAliveTimeout /t REG_DWORD /d 0x0001d4c0 /f

hth

Steve
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
acsadamsAuthor Commented:
That was it, thanks Steve!  I figured it was something simple like this that I was missing.  Thanks a bunch for the help!

Andy
0
Steve KnightIT ConsultancyCommented:
No problem, was just passing the PC and gave a saw it was a quick answer.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.