Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Force SCCM task sequence to Fail if Installed McAfee Version does not match 10

dj3094

Well-Known Member
Messages
241
Reaction score
7
Points
18
Hell Experts,

I have a Task sequence which works good. We want to add a step at the start to check the McAfee version. If Version is not equal to 10 Fail the Task sequence.
Is there any way to do that.

regards
Dj
 
the first question would be how would you detect this? once you can answer this question people can guide you to your answer. but clearly this can be done with a script.
 
Thanks garath, Is there anything in options>Add condition "registry setting", installed software" ,"Query wmi something like that.
I have already created a script but working with conditions


if (Get-WmiObject -Class Win32_Product | Where-Object -FilterScript {$_.Name -eq "McAfee Endpoint Security Platform"} | Where-Object -FilterScript {$_.version -eq "10.5.1"} | Format-List -Property Name,Version) {
Write-Output "success"
}
else
{
Write-Output "fail"
}

what can i include to fail the TS in else condition, i tried killing TSProgressUI.exe

thanks in Advance
 
Thanks Garath, I am adding script to TS now and will test it. Is there any alternatives to achieve goal
 

Forum statistics

Threads
7,025
Messages
27,490
Members
17,677
Latest member
Nairolf

Trending content

Back
Top