Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VBS software Deployment via GPO

Posted on 2014-02-04
10
Medium Priority
?
1,480 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 8

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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 56

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 8

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 56

Accepted Solution

by:
McKnife earned 2000 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 56

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Let's recap what we learned from yesterday's Skyport Systems webinar.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

610 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