Solved

deploy a MSI file with special switches using GPO.

Posted on 2014-04-19
5
2,481 Views
Last Modified: 2014-04-27
Hi,

I have two questions to ask:


1.  Is it possible to run a MSI file with a /qn /noreboot switches on a group of computers in an OU using group policies?  
I only know how to create a software package in GPO to run the MSI only.  

2.  Is it possible to run a .cmd or .bat file on a group of computers in an OU using group policies?  

We have Windows 2008 environment.

Please advise.

Thanks.
0
Comment
Question by:nav2567
[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
  • 2
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Mohammed Khawaja
ID: 40010926
You can deploy MSI files by creating batch file with the parameter you want.  What I usually do is create a check file or log the output of the installation to a file on the drive.  Make sure the patch file looks for the check file and if not present then to install the MSI file.  This way your script will run fast.
0
 

Author Comment

by:nav2567
ID: 40010939
Thanks.

Can you explain how?  I have never done this before.

An example is best.  Thanks.
0
 
LVL 23

Expert Comment

by:yo_bee
ID: 40011348
Open Notepad and create a Bat or a CMD file.

1: Open Notepad
2: Enter the string you want to run:
msiexec /I "full path of the MSI file" /qn /noreboot
3: Save as *.* type and name the file <something>.bat
4: Add the file to your Startup script or Logon Script part of a test GPO.
5: Test
6: Publish

Note I attached an example, but you should not have the .txt extension when you save the file.
TestMSIPush.bat.txt
0
 

Author Comment

by:nav2567
ID: 40011431
Thanks.

Once the install script has been run, will it be run again when the server is restart or logon?
0
 
LVL 23

Accepted Solution

by:
yo_bee earned 500 total points
ID: 40012893
You can add something like this where the GUID is the MSI guid

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{04512CC7-93CC-42E3-969B-EA49A8606FE0}
If %ERRORLEVEL% == 0 Exit

msiexec /I "Package" /qn /noreboot

Open in new window

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

728 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