Solved

VBS software Deployment via GPO

Posted on 2014-02-04
10
1,363 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
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!

 
LVL 54

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 54

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 54

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
In-place Upgrading Dirsync to Azure AD Connect
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

740 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