Avatar of techgenious
techgenious
Flag for United States of America asked on

Deploying MSI via group policies

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
Windows Server 2008

Avatar of undefined
Last Comment
techgenious

8/22/2022 - Mon
IT-Shrek

no, just wait some time or force manual refresh with gpupdate /force in a cmd window.
chakko

You can do a gpupdate /force and then it should install during the boot/Windows startup process (before the logon screen appears).
Don

GPO software installs *Only* take place during the startup process.

So yes you will need to reboot
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
techgenious

ASKER
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?
Don

Would you be using the .bat as a logon script ?

Do users have admin rights ?
techgenious

ASKER
Do I need more than this?
Yes Administrative rights, etc.

msiexec.exe \\xyz.com\gpo$\Inventory\TEST.msi /qn /norestart
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
BigRedRPB

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
techgenious

ASKER
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