Cannot Remove a Application from Computer

%3CLINGO-SUB%20id%3D%22lingo-sub-3033333%22%20slang%3D%22en-US%22%3ECannot%20Remove%20a%20Application%20from%20Computer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3033333%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20having%20a%20troubling%20time%20with%20this%20and%20was%20wondering%20if%20you%20guys%20may%20be%20able%20to%20assist.%20We%20are%20trying%20to%20remove%20'McAfee%20LiveSafe'%20and%20'Webadvisior%20by%20McAfee'%20from%20computers.%20These%20programs%20came%20pre-installed%20onto%20the%20computers%20that%20we%20received%20from%20CDW.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20the%20following%3A%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EUninstall-Package%20-Name%20%22McAfee%20LiveSafe%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3EI%20have%20also%20tried%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24app%20%3D%20Get-WmiObject%20-Class%20Win32_Product%20%7C%20Where-Object%20%7B%20%0A%20%20%20%20%24_.Name%20-match%20%22McAfee%20LiveSafe%22%20%0A%7D%0A%24app.Uninstall()%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3EThe%20image%20is%20what%20I%20get%20when%20I%20run%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3Eget-package%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20do%20not%20run%20into%20any%20errors.%20It%20says%20that%20it%20runs%20but%20nothing%20gets%20deleted.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20help%20would%20be%20appreciated.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ECody%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3033333%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello, 

 

I am having a troubling time with this and was wondering if you guys may be able to assist. We are trying to remove 'McAfee LiveSafe' and 'Webadvisior by McAfee' from computers. These programs came pre-installed onto the computers that we received from CDW. 

 

I have tried the following: 

Uninstall-Package -Name "McAfee LiveSafe"

I have also tried:

$app = Get-WmiObject -Class Win32_Product | Where-Object { 
    $_.Name -match "McAfee LiveSafe" 
}
$app.Uninstall()

The image is what I get when I run:

get-package

 

I do not run into any errors. It says that it runs but nothing gets deleted.

 

Any help would be appreciated. 

 

Cody

 

2 Replies
Perhaps this is an option for you? https://christianlehrer.com/?p=359
Any update? Did it work?