/build/static/layout/Breadcrumb_cap_w.png

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,


0 Comments   [ + ] Show comments

Answers (1)

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\
Posted by: dugullett 11 years ago
Red Belt
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.


Comments:
  • 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. - dugullett 11 years ago
  • Thank you dugullet I will work on this this weekend. - bozadmin 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ