Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deploying MSI via group policies

Posted on 2012-03-19
8
Medium Priority
?
860 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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
 
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 800 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
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 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 …
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…

877 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