Uninstall msi using GPO?

LVL 1
CHI-LTDAsked:
Who is Participating?
 
Haresh NikumbhConnect With a Mentor Sr. Tech leadCommented:
you need to create script to uninstall software with GPO

by the way which software/client do you want to uninstall ?
0
 
Haresh NikumbhConnect With a Mentor Sr. Tech leadCommented:
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
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
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
 
McKnifeConnect With a Mentor Commented:
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
 
MaheshConnect With a Mentor ArchitectCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.