
Probably very simple but it's got me stumped.
If you take a look here :
http://www.robvanderwoude.com/index.html
There is this way of adding a reg file :
REGEDIT /S addsome.REG
Now obviously you would alter the name of the reg file and you may need to include the path of the regfile ie :
REGEDIT /S "C:\somefolder\addsome.REG"
And you could use this command in a vbscript by using shell run command :
http://msdn.microsoft.com/library/de...l/wsmthrun.asp
which would end up something like so :
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run REGEDIT /S "C:\somefolder\addsome.REG"
Let me know how that goes![]()
If that does not work then you would probably use regedit32 ie :
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run REGEDIT32 /S "C:\somefolder\addsome.REG"
normal users prob wont be able to install this cos they wont have write access to hk local machine.

I will use the regedt32 /s... in the startup script (that will give sufficient priviledges) and I will let you know how it goes.![]()
If you want to do registry stuff via policy, I highly recommend the (free) Policy Maker Registry Extension (see essential software list).

The regedt32 thing above does work! (As far as I can tell).
Yay!![]()
Just out of curiousty, does the s switch hide any of the error messages if there are any or are you just checking that the registry entries are added afterwards so you Dont have to worry about any error messages ( that is if you get any !! ?? )
There are currently 1 users browsing this thread. (0 members and 1 guests)