adding REG_BINARY value to all computers

J

jonesy

I want to add a REG_BINARY value to all computers using either group
policy or the logon script. From what I have seen so far, it is not
possible using Group Policy, and I haven't quite nailed it as a logon
script entry. From what I have seen a DWORD value can be added or
amended using the following command;

WshShell.RegWrite
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Cache\Persistent", 0, "REG_DWORD"

If I want to add the web site to allow pop-ups, would the command be
something like;

WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\\Internet
Explorer\New Windows\Allow", "www.test.com" hex:

Am I close, or completely off the track?
 
B

Brian A.

In today's days of needed security and the nature of what you want to do,
I wouldn't be comfortable helping with a reg hack that allows site popup to
all users, no matter what the purpose. I'm not sure if others feel the
same but I am willing to bet that at least 80% which I don't know are and
100% of whom I do.

--

Brian A. Sesko { MS MVP_Shell/User }
Conflicts start where information lacks.
http://basconotw.mvps.org/

Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
How to ask a question: http://support.microsoft.com/kb/555375
 
J

jonesy

I now have a *.reg file that I want to run as part of the logon script.
I have entered the command;

regedit /s \\servername\file.reg

but I keep getting the following message;

VBScript compilation error: Syntax error

Anyone know what the problem could be?
 
S

Steve N.

jonesy said:
I now have a *.reg file that I want to run as part of the logon script.
I have entered the command;

regedit /s \\servername\file.reg

but I keep getting the following message;

VBScript compilation error: Syntax error

Anyone know what the problem could be?

Try:

\\servername\file.reg /s

Steve N.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top