Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

deploy a MSI file with special switches using GPO.

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.
Avatar of Mohammed Khawaja
Mohammed Khawaja
Flag of Canada image

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.
Avatar of nav2567

ASKER

Thanks.

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

An example is best.  Thanks.
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
Avatar of nav2567

ASKER

Thanks.

Once the install script has been run, will it be run again when the server is restart or logon?
ASKER CERTIFIED SOLUTION
Avatar of yo_bee
yo_bee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial