{"id":359,"date":"2020-11-03T21:30:57","date_gmt":"2020-11-03T20:30:57","guid":{"rendered":"https:\/\/christianlehrer.com\/?p=359"},"modified":"2020-11-06T07:07:01","modified_gmt":"2020-11-06T06:07:01","slug":"uninstall-mcafee-livesafe-silently-from-the-commandline-whatilearnedtoday","status":"publish","type":"post","link":"https:\/\/christianlehrer.com\/?p=359","title":{"rendered":"Uninstall McAfee LiveSafe silently from the commandline #WhatILearnedToday"},"content":{"rendered":"<div class=\"shariff\" data-title=\"Uninstall McAfee LiveSafe silently from the commandline #WhatILearnedToday\" data-info-url=\"http:\/\/ct.de\/-2467514\" data-backend-url=\"https:\/\/christianlehrer.com\/wp-content\/plugins\/shariff-sharing\/backend\/index.php\" data-temp=\"\/tmp\" data-ttl=\"60\" data-service=\"tlxr\" data-services='[\"facebook\",\"twitter\",\"linkedin\",\"xing\",\"reddit\",\"whatsapp\",\"mail\",\"info\"]' data-image=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1-300x286.pnghttps:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1-300x286.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1.png 543w\" data-url=\"https:\/\/christianlehrer.com\/?p=359\" data-lang=\"en\" data-theme=\"white\" data-orientation=\"horizontal\"><\/div><p>03.11.2020<\/p>\n<p>Do you know that feeling when you use your favorite search engine with &#8220;this should be easy, someone will already have figured out how to do this&#8221; in mind?<\/p>\n<p>This is how my work on the topic I\u00b4m describing in this post started. And because this blogpost exists, you might assume correctly that this was not the case for the challenge I was facing:<\/p>\n<p>Silently uninstalling the McAfee LiveSafe <del datetime=\"2020-11-03T20:16:52+00:00\">bloatware<\/del> trial version on a fresh installed Windows 10 PC. (Seriously Microsoft &#8211; You should make Windows less expensive to the OEMs so they &#8220;don\u00b4t have to&#8221; sell space for crapware on their customers computers. How great would it be to have a clean Windows installed from the start for everyone? Customer Experience anyone? )<\/p>\n<p>While doing this manually might be (and probably is) the best solution for a single device, uninstalling this software from &#8220;Add\/Remove Programs&#8221; is not an option if you have to get rid of it on many PCs.<\/p>\n<p>Unfortunately McAfee seems to think that uninstalling their software should be really hard &#8211; they even put a captcha in the manual uninstall process!. They don\u00b4t provide any command line parameters or uninstall information besides &#8220;Use Add\/Remove programs&#8221; or &#8220;use the McAfee Consumer Products Removal Tool&#8221; with a Gui. Uninstalling via PowerShell did not work either.<\/p>\n<p>(For the Enterprise part of their software they provide a different tool called &#8220;Endpoint Product Removal Tool&#8221; , which seems to accept command line parameters.)<\/p>\n<p>So a little digging was needed to find out how to achieve the goal: <strong>A silent uninstall of McAfee LiveSafe (and all other McAfee Products)<\/strong><\/p>\n<p>Here\u00b4s is how to do it (please note that the solution is working today 03.11.2020 with McAfee LiveSafe Version 16.0R24)<\/p>\n<p>a) Download the McAfee Consumer Product Removal Tool (<a href=\"http:\/\/us.mcafee.com\/apps\/supporttools\/mcpr\/mcpr.asp\">http:\/\/us.mcafee.com\/apps\/supporttools\/mcpr\/mcpr.asp<\/a> )<\/p>\n<p>b) Open an elevated PowerShell window<\/p>\n<p>c) Navigate to the folder you saved the MCPR.exe to.<\/p>\n<p>d) Start MCPR.exe and do not close the window, click next or click cancel. We just need the installer to extract the files we want to use.<a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-360\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1-300x286.png\" alt=\"\" width=\"300\" height=\"286\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1-300x286.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA1.png 543w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>e) Navigate to your local appdata folder <code>cd $Env:LocalAppdata\\Temp\u00a0<\/code><\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-361 alignnone\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA2-300x78.png\" alt=\"\" width=\"300\" height=\"78\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA2-300x78.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA2.png 326w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>f) Copy the folder &#8220;MCPR&#8221; to any other folder on your Harddrive (e.g. c:\\temp\\KillMcAfee)<\/p>\n<p>Because of the -Force Parameter, the folder will be created even if it does not exist.<\/p>\n<p><code>copy-item -Path .\\MCPR\\ -Destination c:\\temp\\KillMcAfee -Recurse -Force<\/code><\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-362\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA3-300x17.png\" alt=\"\" width=\"582\" height=\"33\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA3-300x17.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA3-768x43.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA3-720x40.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA3.png 901w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<p>g) Navigate to the folder where you copied the data to.<\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA4.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-363\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA4-300x28.png\" alt=\"\" width=\"300\" height=\"28\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA4-300x28.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA4.png 509w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>h) Close the still open Uninstall User Interface by clicking cancel<\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA5.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-364\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA5-300x287.png\" alt=\"\" width=\"300\" height=\"287\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA5-300x287.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA5.png 540w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>i) Now that the Gui is closed, it\u00b4s time to uninstall McAfee LiveSafe without any Gui with PowerShell:<\/p>\n<p><code>.\\Mccleanup.exe -p StopServices,MFSY,PEF,MXD,CSP,Sustainability,MOCP,MFP,APPSTATS,Auth,EMproxy,FWdiver,HW,MAS,MAT,MBK,MCPR,McProxy,McSvcHost,VUL,MHN,MNA,MOBK,MPFP,MPFPCU,MPS,SHRED,MPSCU,MQC,MQCCU,MSAD,MSHR,MSK,MSKCU,MWL,NMC,RedirSvc,VS,REMEDIATION,MSC,YAP,TRUEKEY,LAM,PCB,Symlink,SafeConnect,MGS,WMIRemover,RESIDUE -v -s<\/code><\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA6.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-365\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA6-300x17.png\" alt=\"\" width=\"600\" height=\"34\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA6-300x17.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA6-768x45.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA6-720x42.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA6.png 963w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The uninstallation will take a while. I did not have to reboot but this might change in your environment.<\/p>\n<p>I assume you could specify single packages if you wanted to keep some McAfee products on your computer by removing them from the command (hence I don\u00b4t know why you would want this\u2026)<\/p>\n<p>j) Delete the folder if you don\u00b4t need it any more.<\/p>\n<p>Using this method, you can easily deploy the uninstallation to any number of PCs using your favorite software distribution tools (like Intune or Configuration Manager \ud83d\ude09 ). Just make sure to include the complete content of the MCPR-folder in your uninstall package.<\/p>\n<p><strong>UPDATE 06.11.2020<\/strong><\/p>\n<p>One way of deploying this via Intune:<\/p>\n<p>a) create a batch file (e.g. Silent_uninstall.bat) in your MCPR-Folder<\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-370\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7-300x42.png\" alt=\"\" width=\"700\" height=\"98\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7-300x42.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7-1024x145.png 1024w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7-768x109.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7-720x102.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA7.png 1217w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>b) pack the MCPR-folder as *.intunewin file with the Intune Content Prep Tool (<a href=\"https:\/\/github.com\/Microsoft\/Microsoft-Win32-Content-Prep-Tool\">GitHub &#8211; microsoft\/Microsoft-Win32-Content-Prep-Tool: A tool to wrap Win32 App and then it can be uploaded to Intune<\/a>)<\/p>\n<p>c) create a new application in Intune and assign it to a group of users or devices.<\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA8.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-371\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA8-300x242.png\" alt=\"\" width=\"487\" height=\"393\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA8-300x242.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA8-768x620.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA8-720x581.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA8.png 1013w\" sizes=\"(max-width: 487px) 100vw, 487px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA9.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-372\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA9-300x192.png\" alt=\"\" width=\"470\" height=\"301\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA9-300x192.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA9-768x491.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA9-720x460.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA9.png 1020w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/a><\/p>\n<p>on the requirements page, create a requirement that checks if the McAfeee Registry key exists. This is one easy way to check if any McAfee software is installed. Please make sure the requirement fit\u00b4s for your environment.<\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-373\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10-300x132.png\" alt=\"\" width=\"593\" height=\"261\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10-300x132.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10-1024x452.png 1024w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10-768x339.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10-1536x678.png 1536w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10-720x318.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA10.png 1592w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/a><\/p>\n<p>In the detection rules section we use the same registry key to check if it is gone. If yes, we assume the software is uninstalled. Again, check if that is a good solution for your environment.<\/p>\n<p><a href=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-374\" src=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11-300x82.png\" alt=\"\" width=\"585\" height=\"160\" srcset=\"https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11-300x82.png 300w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11-1024x281.png 1024w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11-768x211.png 768w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11-1536x421.png 1536w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11-720x197.png 720w, https:\/\/christianlehrer.com\/wp-content\/uploads\/2020\/11\/MCA11.png 1579w\" sizes=\"(max-width: 585px) 100vw, 585px\" \/><\/a><\/p>\n<p>Finally assign it to a group of devices or users to get rid of McAfee LiveSafe.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>03.11.2020 Do you know that feeling when you use your favorite search engine with &#8220;this should be easy, someone will already have figured out how to do this&#8221; in mind? This is how my work on the topic I\u00b4m describing in this post started. And because this blogpost exists, you might assume correctly that this&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[138,7,164,167,14,15,23,174],"tags":[177,176,178,175],"_links":{"self":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/359"}],"collection":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359"}],"version-history":[{"count":5,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":375,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=\/wp\/v2\/posts\/359\/revisions\/375"}],"wp:attachment":[{"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/christianlehrer.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}