Need help with pushing registry key's via active setup and offline script
First of let me start with ITNINJA Rocks! what a great community someone is always willing to help.
I have script that I want to push to all machine and would really appreciate some assistance. Smal has been very helpfull in assisting me create the online script but I think active offline would be better in this. The script adds our intranet to the local trusted sites.
i am hoping I can do this with offline and forget about it so that even mobile users will get it when ever they login next time. http://www.itninja.com/question/script-to-add-site-to-local-intranet
Thank you,
Answers (1)
reate a script that will do the following: Create registry entry [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\] "Version"="1" "StubPath"="cscript.exe C:\some\path\
I would reference this link for help.
http://www.itninja.com/blog/view/appdeploy-articles-activesetup
Create a script that will do the following:
Create registry entry
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\<Software>]
"Version"="1"
"StubPath"="cscript.exe C:\some\path\<name_of_vbscript.vbs"
Copy .vbs script to local machine
copy /y "name_of_vbscript.vbs" "C:\some\path"
The next time a user logs in it will match HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\<Software> and the hive in HKCU. If the key does not exist in HKCU then it will run whatever value is in the "Stubpath". I've also have never done this using a VB Script. So there might be some tweaking with the stubpath i.e. cscript or wscript.