Mark Minasi's Tech Forum
Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
charlesnm

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 43
Reply with quote  #1 
I would like to create a GPO to uninstall CCleaner.  another forma suggested 
a2e
a2e 

ccleaner has a silent uninstall switch

uninst.exe /S

 

I would just make a batch file

Text
cd C:\Program Files\CCleaneruninst.exe /S

 

Deploy it through gpo

http://www.petri.co.il/setting-up-logon-script-through-gpo-windows-server-2008.htm#


but of course it does not work for me!@#?

can anyone please help me?

Thank You

Charles 

0
wkasdo

Avatar / Picture

Administrator
Registered:
Posts: 237
Reply with quote  #2 
Try your batch file. You will see that it doesn't work.
__________________
[MSFT]; Blog: https://blogs.technet.microsoft.com/389thoughts/
0
Pieter

Avatar / Picture

Senior Member
Registered:
Posts: 239
Reply with quote  #3 
Try this

cd /d "C:\Program Files\NameOfTheFolderWhereCCleanerIs"
CCleaneruninst.exe /S

Obviously, I didn't test this. [wink]


__________________
Pieter Demeulemeester
0
charlesnm

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 43
Reply with quote  #4 
Thanks for the suggestions.

it look like the reason why i am getting this error has to do with gpo filtering denied (security).
 I know that i need to go to delegation tap, but not sure what i should do from there.

any ideals please?

Thanks,

Charles
0
Pieter

Avatar / Picture

Senior Member
Registered:
Posts: 239
Reply with quote  #5 
Hi Charles,
I suggest you cut the problem in two pieces:
1. run the script interactively, as Admin of course
2. try a GPO with a simple script like running notepad or write something to a dummy file, something where Admin rights are not required.

If both works, you can start to combine them.

__________________
Pieter Demeulemeester
0
Phil-n-JaxFL

Avatar / Picture

Grumpy Old Men
Registered:
Posts: 87
Reply with quote  #6 

Here is the PowerShell code I wrote for it:

if (Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |

    Where-Object DisplayName -eq CCleaner -OutVariable Results) {

    & "$($Results.InstallLocation)\uninst.exe" /S


__________________
Phil
0
charlesnm

New Friend (or an Old Friend who Built a New Account)
Registered:
Posts: 43
Reply with quote  #7 
thanks you all
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.