Solved

Uninstall msi using GPO?

Posted on 2014-04-07
29
2,932 Views
Last Modified: 2014-04-22
0
Comment
Question by:CHI-LTD
  • 14
  • 9
  • 3
  • +2
29 Comments
 
LVL 6

Accepted Solution

by:
xeroxzerox earned 100 total points
Comment Utility
0
 
LVL 21

Assisted Solution

by:Haresh Nikumbh
Haresh Nikumbh earned 200 total points
Comment Utility
you need to create script to uninstall software with GPO

by the way which software/client do you want to uninstall ?
0
 
LVL 21

Assisted Solution

by:Haresh Nikumbh
Haresh Nikumbh earned 200 total points
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
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
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 100 total points
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
i can only select uninstall this application when it fails out of the scope of management.
0
 
LVL 35

Assisted Solution

by:Mahesh
Mahesh earned 100 total points
Comment Utility
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
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
> 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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
>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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
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
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
sorry.

want to remove it from all computers.
0
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
so remove the software from GPO which will uninstall it.?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
odd.  i now have a blank GPO and clients with the software/msi installed..
0
 
LVL 35

Expert Comment

by:Mahesh
Comment Utility
Ya, that's right

Please remove software as indicated above.
0
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
so how do i get it to uninstall automatically?
0
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
well its not uninstalling after a few reboots when selecting the uninstall immediately..
0
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
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
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
i just followed mahesh and then your solutions which neither worked.   i have now added it back and will not even install.
0
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
I asked for some actions. Instead you reapply the package... please don't make it worse.
0
 
LVL 35

Expert Comment

by:Mahesh
Comment Utility
Check below article for more details

http://support.microsoft.com/kb/816102#method6
0
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
i have clearly upset machines that have installed the msi.

now the machines that have used the gpo fail to install/uninstall.
0
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
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
 
LVL 1

Author Comment

by:CHI-LTD
Comment Utility
as i removed the msi and readded it, its now not uninstalling automatically from machines as i hoped.
0
 
LVL 53

Expert Comment

by:McKnife
Comment Utility
So...?
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

763 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