Solved

Uninstall msi using GPO?

Posted on 2014-04-07
29
3,224 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
ID: 39982663
0
 
LVL 22

Assisted Solution

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

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

Assisted Solution

by:Haresh Nikumbh
Haresh Nikumbh earned 200 total points
ID: 39982672
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

 
LVL 1

Author Comment

by:CHI-LTD
ID: 39982724
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 54

Assisted Solution

by:McKnife
McKnife earned 100 total points
ID: 39982722
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
ID: 39982730
i can only select uninstall this application when it fails out of the scope of management.
0
 
LVL 36

Assisted Solution

by:Mahesh
Mahesh earned 100 total points
ID: 39982994
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 54

Expert Comment

by:McKnife
ID: 39983000
> 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
ID: 39983123
>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
ID: 39983283
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
ID: 39983286
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 54

Expert Comment

by:McKnife
ID: 39983289
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
ID: 39983304
sorry.

want to remove it from all computers.
0
 
LVL 1

Author Comment

by:CHI-LTD
ID: 39983305
so remove the software from GPO which will uninstall it.?
0
 
LVL 1

Author Comment

by:CHI-LTD
ID: 39983380
odd.  i now have a blank GPO and clients with the software/msi installed..
0
 
LVL 36

Expert Comment

by:Mahesh
ID: 39983388
Ya, that's right

Please remove software as indicated above.
0
 
LVL 1

Author Comment

by:CHI-LTD
ID: 39983395
so how do i get it to uninstall automatically?
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39983406
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
ID: 39983414
well its not uninstalling after a few reboots when selecting the uninstall immediately..
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39983423
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
ID: 39983428
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 54

Expert Comment

by:McKnife
ID: 39983500
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
ID: 39983551
i just followed mahesh and then your solutions which neither worked.   i have now added it back and will not even install.
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39983604
I asked for some actions. Instead you reapply the package... please don't make it worse.
0
 
LVL 36

Expert Comment

by:Mahesh
ID: 39983619
Check below article for more details

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

Author Comment

by:CHI-LTD
ID: 39988696
i have clearly upset machines that have installed the msi.

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

Expert Comment

by:McKnife
ID: 39990172
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
ID: 39998423
as i removed the msi and readded it, its now not uninstalling automatically from machines as i hoped.
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39998580
So...?
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application Crash 2 23
Where to find file on SBS 2008 4 26
User account lockout - Server 2012R2 7 30
hp envy 4500 driver installation problem 5 21
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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