Solved

VBS software Deployment via GPO

Posted on 2014-02-04
10
1,418 Views
Last Modified: 2014-02-26
Hi
I have created a silent install of logmein through vbs

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "msiexec.exe /q /i \\senabzdata\images\logmein\LogMeIn.msi DEPLOYID=00_w6snwu02u19nywfzbfoewcfxkd9zeg0qg0668 INSTALLMETHOD=5 FQDNDESC=1", 1, True

I would like to make this available for deployment via GPO
I guess I could just add the vbs to start-up, but how do I stop it from running if the application is already installed? or is there a better way?
0
Comment
Question by:kwatt562
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 7

Expert Comment

by:Sumit Gupta
ID: 39832059
To publish a package to computer users and make it available for installation from the Add or Remove Programs list in Control Panel, follow these steps: Click here to show/hide solution
Start the Active Directory Users and Computers snap-in. To do this, click Start, point to Administrative Tools, and then click Active Directory Users and Computers.
In the console tree, right-click your domain, and then click Properties.
Click the Group Policy tab, click the policy that you want, and then click Edit.
Under User Configuration, expand Software Settings.
Right-click Software installation, point to New, and then click Package.
In the Open dialog box, type the full UNC path of the shared installer package that you want. For example, \\file server\share\file name.msi.


for more info: http://support.microsoft.com/kb/816102/en-us#method4

http://support.microsoft.com/kb/816102/en-us
0
 

Author Comment

by:kwatt562
ID: 39832090
thanks for that but the msi is not silent it requires the switches supplied in the vbs
0
 
LVL 18

Expert Comment

by:Sushil Sonawane
ID: 39832115
Please refer below link to resolve your issue.

http://social.technet.microsoft.com/Forums/en-US/2d780459-0205-438b-8e2a-1935a395e174/software-installation-startupscript-via-gpo?forum=ITCG


The above mention url mention script first it check the your software install on the machine or not. if yes then your script will be stop install the software.
0
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 
LVL 55

Expert Comment

by:McKnife
ID: 39832153
Why a scripted installation? Simple GPO software deployment is ALWAYS silent, when computer objects are targeted. You need no script. Put the MSI into you GPO->compconfig->software and there you go.
0
 
LVL 7

Expert Comment

by:Sumit Gupta
ID: 39832189
Yes, GPO installation is always silent installation.
0
 

Author Comment

by:kwatt562
ID: 39834000
It will install silently but with logmein, if you don't reference the deployment ID etc, it doesn't add the pc to the correct account. I managed to get it to work simply by adding the above vbs into a startup script. thanks
0
 
LVL 55

Accepted Solution

by:
McKnife earned 500 total points
ID: 39834037
Sorry, you are at the same point like at the start, it seems. On restart, the script will run again - that was the problem you came here for, at least :)
To make startup scripts run one, you can go about like this:
--
if exist %windir$\admin\scriptHASrun goto end
setupcommand && %windir$\admin\scriptHASrun
:end
0
 

Author Comment

by:kwatt562
ID: 39845647
ok so I add that to the end of the install vbs
0
 
LVL 55

Expert Comment

by:McKnife
ID: 39846542
No, to the beginning. "setupcommand" is your vbs-script.
0
 

Author Comment

by:kwatt562
ID: 39888703
sorry for the late reply, was not able to make tests again till today and that worked! thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question