This code will cause 2 iterations before continuing to my next code. Running this off a USB drive.
write-Host "McAfee Consumer Product Removal" -ForegroundColor Cyan
$drives = Get-PSDrive
foreach ($root in $drives.root) {
if (test-path "$root`mccleanup\mccleanup.exe") {
cd "$root`mccleanup"
.\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
write-Host "McAfee Consumer Product Removal completed" -ForegroundColor Magenta
}
}