Ric_ Posted September 22, 2005 Posted September 22, 2005 Probably very simple but it's got me stumped.autologin.reg
mac_shinobi Posted September 22, 2005 Posted September 22, 2005 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/default.asp?url=/library/en-us/script56/html/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
mac_shinobi Posted September 22, 2005 Posted September 22, 2005 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"
browolf Posted September 22, 2005 Posted September 22, 2005 normal users prob wont be able to install this cos they wont have write access to hk local machine.
Ric_ Posted September 22, 2005 Author Posted September 22, 2005 I will use the regedt32 /s... in the startup script (that will give sufficient priviledges) and I will let you know how it goes.
ajbritton Posted September 22, 2005 Posted September 22, 2005 If you want to do registry stuff via policy, I highly recommend the (free) Policy Maker Registry Extension (see essential software list).
Ric_ Posted September 27, 2005 Author Posted September 27, 2005 The regedt32 thing above does work! (As far as I can tell). Yay!
mac_shinobi Posted September 27, 2005 Posted September 27, 2005 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 !! ?? )
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now