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,

Answer Summary:
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\
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

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.

Answered 01/11/2013 by: dugullett
Red Belt

  • If you ever need a change later just change the version number and it will update since it will not match the hive under HKCU.
  • Thank you dugullet I will work on this this weekend.
Please log in to comment
Answer this question or Comment on this question for clarity

Share