Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing installed application via GPO

Status
Not open for further replies.

Daveyd123

MIS
Aug 25, 2004
413
US
I have a GPO setup to install Adobe 8 reader to all PCs in a top level OU. I need to uninstall Adobe 8 on all PCs in ONLY 1 specific OU which is under the top level OU.

Any ideas on the easiest way to to that while NOT uninstalling Adobe on all other PCs under the top level OU?
 
First, you should select the checkbox to remove the app if it falls out of management.

Then - block inheritence to the OU where users shouldn't get it. That should cause it to uninstall.

You could use .vbs to remove it, but you're going to need to make sure it doesn't get reinstalled.

Here's a sample I use to remove the Yahoo toolbar in IE:

Code:
Option Explicit:On Error Resume Next
Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Yahoo! Companion\UninstallString")
If a<>"" Then WshShell.Run(""""&a&""" /S"),1,True:i=1
WshShell=Nothing:Wscript.Quit(i)

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
 
For some reason it's not working.

I checked the Unininstall app when it falls out of scope of management. Logged into the PC and ran gpupdate /force. rebooted PC. After PC rebboted, Blocked Inheritence on the OU that the PC was in. Logged into the PC and ran gpupdate /force. Rebooted. PC came back up with Adobe still installed. Logged back in a 2nd time and ran gpupdate /force again. Rebooted. PC still came back up with Adobe installed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top