Solved

Deploying MSI via group policies

Posted on 2012-03-19
8
726 Views
Last Modified: 2012-03-21
I want to deploy a software package [MSI], via group policy.

Right now it is:  assigned / Computers in a test OU.

When I apply this does the test computer have to be rebooted for the GPO to take affect?

Windows Server 2008 R2.

Thanks
0
Comment
Question by:techgenious
8 Comments
 
LVL 3

Expert Comment

by:IT-Shrek
ID: 37739563
no, just wait some time or force manual refresh with gpupdate /force in a cmd window.
0
 
LVL 22

Expert Comment

by:chakko
ID: 37739616
You can do a gpupdate /force and then it should install during the boot/Windows startup process (before the logon screen appears).
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 37739617
GPO software installs *Only* take place during the startup process.

So yes you will need to reboot
0
 

Author Comment

by:techgenious
ID: 37739647
can I do a automatic install without rebooting using a batch file:

msiexec.exe \\xyz.com\gpo$\Inventory\TEST.msi /qn /norestart

Put it in the GPO, and this will push out automatically to all the servers I have in an OU, without user intervention and server reboots?
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 47

Expert Comment

by:Donald Stewart
ID: 37739795
Would you be using the .bat as a logon script ?

Do users have admin rights ?
0
 

Author Comment

by:techgenious
ID: 37740174
Do I need more than this?
Yes Administrative rights, etc.

msiexec.exe \\xyz.com\gpo$\Inventory\TEST.msi /qn /norestart
0
 
LVL 3

Accepted Solution

by:
BigRedRPB earned 200 total points
ID: 37742025
To do it via a batch file and without rebooting (as long as your users have admin rights), you can use Group Policy Preferences to create a scheduled task.

1. Create the task in GPP (of course, set the start time of the task a bit in the future)
2. Either do a GPUpdate on the machine or wait until policy refreshes, which is 60-90 minutes by default, I think.
3. The task should fire off the install.  You can also set the task to run only once and to delete if it does not need to run again.

See here for more details:  http://technet.microsoft.com/en-us/library/cc770904.aspx

Keep in mind, the cleanest way to do this is by assigning the software via standard Group Policy Software and restarting.  That makes it easier to remove in the future as you can simply remove the assignment and have Group Policy uninstall the software.  You 'could' actually do both the assignment and the scheduled task to have the best of both worlds.  That 'should' work, but you may want to test before rolling it out to 1000 users.  :)
0
 

Author Comment

by:techgenious
ID: 37742211
It has to be done via PowerShell Script, so I was able to do the MSIE command which I have to embed into PS.

msiexec /i "\\xyz.com\gpo$\TestInventory\Test Inventory.msi" /quiet /norestart
That worked when I tried it @ the command line.

Now I have to put that into a PowerShell script which I have as:

$script = {
   
$args = "/i "\\xyz.com\gpo$\TestInventory\Test Inventory.msi"  /quiet /norestart
[diagnostics.process]::start("msiexec.exe", $args).WaitForExit()
   
}

I am going to try this script and see if it works from Power Shell ISE
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …

867 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

20 Experts available now in Live!

Get 1:1 Help Now