Solved

VBS software Deployment via GPO

Posted on 2014-02-04
10
1,390 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

732 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