Setting a DWORD value in .bat file

Trying to set proxy server address for Internet Settings using a .bat file (hoping to use login script)

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"  /v proxyserver /t REG_SZ /d ""  /f

The above works fine but I need to enable this by setting "ProxyEnable"=dword:00000001 but unsure of, have tried several ways but to no avail.

Any help appreciated.

Who is Participating?
Works nearly the same way:
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings"  /v "ProxyEnable" /t REG_DWORD /d "1"  /f
use /t REG_DWORD intead of t REG_SZ, I believe.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.