• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4367
  • Last Modified:

Uninstall msi using GPO?

0
CHI-LTD
Asked:
CHI-LTD
  • 14
  • 9
  • 3
  • +2
5 Solutions
 
xeroxzeroxCommented:
0
 
Haresh NikumbhCommented:
you need to create script to uninstall software with GPO

by the way which software/client do you want to uninstall ?
0
 
Haresh NikumbhCommented:
Every software has some parameters for uninstall, so you can create batch file to referring those parameters and run that batch file using GPO
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
CHI-LTDAuthor Commented:
i presume that http://www.symantec.com/business/support/index?page=content&id=HOWTO55432 will remove the msi from all machines that is getting this GPO?
0
 
McKnifeCommented:
No script is needed if the software was deployed as MSI using GPO's native software deployment. In the GPO, select to remove the package and select to uninstall it immediately.
0
 
CHI-LTDAuthor Commented:
i can only select uninstall this application when it fails out of the scope of management.
0
 
MaheshArchitectCommented:
Check The 3rd point in Symantec link.

On the Advanced tab, check Uninstall this application when it falls out of the scope of management, and then click OK.

You don't have to remove Software installation package, just select above checkbox in deployed package

Now run gpupdate /force on server

Then just move required client computers from OU where GPO is applied to new OU where GPO is not applied and run gpupdate /force on client computers

Then reboot client computer and hopefully your software will get removed from clients

Mahesh.
0
 
McKnifeCommented:
> i can only select uninstall this application when it fails out of the scope of management.
Right click the package, click on "all tasks", now select remove and then immediately uninstall.
0
 
CHI-LTDAuthor Commented:
>Right click the package, click on "all tasks", now select remove and then immediately uninstall.
Surely this is for when the clients have uninstalled automatically as per Mahesh solution?
0
 
CHI-LTDAuthor Commented:
the msi is still there after i have cliented the uninstall tick box.
is this sufficient or should i also right click on the software application and select remove?
0
 
CHI-LTDAuthor Commented:
sorry, im being thick.

i need to run step 5 also dont i?!

In the Remove Software dialog box, check Immediately uninstall the software from users and computers, and then click OK.
0
 
McKnifeCommented:
It is not clear what you want. Mahesh's option should be used if the package needs to be automatically uninstalled at some computers, not all. That would mean for those computers that they would need to leave the OU they are in. To my mind, this is not desirable.

My solution is applicable if you would like to automatically uninstall the application from all machines it had been deployed to without changing OU membership.

Decide for yourself.
0
 
CHI-LTDAuthor Commented:
sorry.

want to remove it from all computers.
0
 
CHI-LTDAuthor Commented:
so remove the software from GPO which will uninstall it.?
0
 
CHI-LTDAuthor Commented:
odd.  i now have a blank GPO and clients with the software/msi installed..
0
 
MaheshArchitectCommented:
Ya, that's right

Please remove software as indicated above.
0
 
CHI-LTDAuthor Commented:
so how do i get it to uninstall automatically?
0
 
McKnifeCommented:
If you selected "uninstall immediately", then it will be uninstalled on next reboot...if the clients have already taken note of the policy change via GPO background refresh. If they haven't, it will be uninstalled on the reboot after the next reboot.
0
 
CHI-LTDAuthor Commented:
well its not uninstalling after a few reboots when selecting the uninstall immediately..
0
 
McKnifeCommented:
Then it was not installed usig that GPO! As simple as that. As I told you right from the start it only works if the software was installed using that same GPO.
0
 
CHI-LTDAuthor Commented:
it is though, im 100% proved its installed via GPO...
So right clicking on the software package and removing is no different to removing the gpo link or deleting the gpo...
0
 
McKnifeCommented:
Sorry, you are wrong. If that makes no difference, while you are sure that this was the very GPO that installed the software, then it would mean that the updated GPO did not apply yet. Please look at the client event log to see if it applied or start rsop.msc at the client and see if that software is still targeted at the client.

I use this system and that's how Microsoft would do it themselves. It works.
0
 
CHI-LTDAuthor Commented:
i just followed mahesh and then your solutions which neither worked.   i have now added it back and will not even install.
0
 
McKnifeCommented:
I asked for some actions. Instead you reapply the package... please don't make it worse.
0
 
MaheshArchitectCommented:
Check below article for more details

http://support.microsoft.com/kb/816102#method6
0
 
CHI-LTDAuthor Commented:
i have clearly upset machines that have installed the msi.

now the machines that have used the gpo fail to install/uninstall.
0
 
McKnifeCommented:
How to proceed?

You wanted the way to uninstall via GPO and you got it the way Microsoft wants it. If that does not work, we would have to analyze what went wrong, but by now, you say you have another problem.
Re-assigning a package will not do harm to current installations, normally. So we would have to analyze carefully. If you need help, then you need to supply information - failing installations/failing de-installations produce logs.
0
 
CHI-LTDAuthor Commented:
as i removed the msi and readded it, its now not uninstalling automatically from machines as i hoped.
0
 
McKnifeCommented:
So...?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 14
  • 9
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now