Forum Discussion
AB21805
Apr 14, 2021Bronze Contributor
Removing McAfee live safe via intune
Hi all, Was wondering if someone can help! I have enrolled devices and all have mcafee live safe trial on which I need to remove, as I have given these devices back to users, fresh start isnt p...
- Apr 15, 2021You could "fake" the uninstall command as it is not required, just enter uninstall.cmd
As detection rule you could add an extra command to the install script to create an additional file something like this:
New-Item -Path "c:\" -Name "temp" -ItemType "directory" -force
$path = "c:\temp"
New-Item -path $path -name "removeav.txt" -ItemType file -force
Apr 15, 2021
HI,
You will need to create a win32 app. You can do this by using the intunewinapputil tool
https://docs.microsoft.com/en-us/mem/intune/apps/apps-win32-prepare
1.Create a folder and copy the mccleanup.exe to that folder.
2.Create a powershell script with the command in it you mentioned.
3.Make sure you get your install command and file requirement right in intune.
You will need to create a win32 app. You can do this by using the intunewinapputil tool
https://docs.microsoft.com/en-us/mem/intune/apps/apps-win32-prepare
1.Create a folder and copy the mccleanup.exe to that folder.
2.Create a powershell script with the command in it you mentioned.
3.Make sure you get your install command and file requirement right in intune.
- AB21805Apr 15, 2021Bronze ContributorHi,
in the link i shared the person uses "%~dp0Mccleanup.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" for the .bat why would %~dp0 be needed? I try running this on the device which has mcafee live safe on and this doesnt work so I would assume this wouldnt work once put in intune?
Would the install/uninstall command be the name of the .bat too? for instance Slient_uninstall.bat- Apr 15, 2021If the .exe is inside that folder you could create a simple powershell script with these contents in it:
.\Mccleanup.exe -p and the other stuff 🙂
Create a win32app and select the instalscript as setup
Your install command in intune would be powershell.exe -executionpolicy bypass -command ".\installscripts.ps1"
Maybe before you create the intunewin file, test it out on a device before you upload it- AB21805Apr 15, 2021Bronze ContributorI will test the locally first before upload! thank you. If this does work locally for upload for intune what would the uninstall command be? and the detection rule? Any ideas?