Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editing the registry with vbscript 2

Status
Not open for further replies.

uucutech

MIS
Feb 5, 2003
30
US
Hello,

I was wondering if someone could help me out with getting these registry entries into the windows registry via vbscript:

[HKEY_CURRENT_USER\Software\Symitar\SFW\2.0\Browser Options]
"Startup Page"=""Information Page"="
[HKEY_USERS\.DEFAULT\Software\Symitar\SFW\2.0\Browser Options]
"Startup Page"=""Information Page"="
[HKEY_LOCAL_MACHINE\Software\Symitar\SFW\2.0\Browser Options]
"Startup Page"=""Information Page"="
We recently migrated to windows 2003 and each machine needs to have these entries for this app to work.

Any help would be greatly appreciated!

Thanks!

Dustin
 
Why not simply create a .REG file either double-clicked in an explorer window or launched by the WshShell.Run method in the script ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks PHV,

I would do it that way, but i want the process to be completely transparent to the user. Is this possible with vbscript?

Thanks!

Dustin
 
Yes:
Set WshShell=CreateObject("WScript.Shell")
WshShell.Run "regedit /s \path\to\regfile.reg"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
So if i use this it won't ask the user to confirm a registry entry that will be added?

Thanks,

Dustin
 
Yes, due the /s switch.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Actually i Take that back.....after 1 day of incorporating this into our login script everyone was getting errors saying that they couldn't run regedit because some DLL was missing. We lock down all of our machines with group policy, so I'm guessing that's why it didn't work. If there is a way to get those registry entries added with using straight vbscript that would be awesome.

Thanks again for all your help!


Dustin
 
That's what i was looking for MrMovie....works like a charm......have a star for your help!

Thanks to both of you for your solutions, i really appreciate it.

Take care,

Dustin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top