Solved

Deploying MSI via group policies

Posted on 2012-03-19
8
719 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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
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

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Join & Write a Comment

I have been working as System Administrators since 2003. I recently started working as a FreeLancer and was amazed to find out that very few people are taking full advantage of their Windows Server Machines. Microsoft Windows Server comes with so…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

746 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

10 Experts available now in Live!

Get 1:1 Help Now