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 "proxy.uk.name.com:3128"  /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.
Thanks

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

0
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.