• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

Reg,exe Add fails in XP

Good Afternoon,

Weird one.. I could do with help please.
I'm batch scripting URLs into IE Privacy Settings - Sites

This syntax works in Windows 7
Reg.exe ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\P3P\History\msn.co.uk" /t REG_DWORD /d 1

In XP, it errors with 'Error: Invalid command-line parameters'

I have concluded it is because I have not stated a value name for the REG_DWORD, as two other entries, which state a value name, work OK.
The name I need is '(Default)' but when this is specified, using /v,  a REG_SZ entry appears also named (Default) and I don't get the results I am after.

Hope this is clear.
1 Solution
You need to add "/ve" to change the empty value.
Reg.exe ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\P3P\History\msn.co.uk" /ve /t REG_DWORD /d 1

Open in new window

Scouser63Author Commented:
Easy when you know how :)

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.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now