[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

deploy a MSI file with special switches using GPO.

Posted on 2014-04-19
5
Medium Priority
?
2,893 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 2000 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

650 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