Solved

deploy a MSI file with special switches using GPO.

Posted on 2014-04-19
5
1,954 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
  • 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 22

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 22

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

The reason that corporations and businesses use Windows servers is because it supports custom modifications to adapt to the business and what it needs. Most individual users won’t need such powerful options. Here I’ll explain how you can enable Wind…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now