Tech Community Live: Microsoft Intune
Mar 20 2024, 07:30 AM - 11:30 AM (PDT)
Microsoft Tech Community

Required Win32 apps, custom detection rule during ESP phase?

Brass Contributor

Hey together,


we are asking ourselves following question right now:

How does Intune behave, during the ESP phase when the device is set up for a new user and gets enrolled, when it comes to required win32 apps and the custom detection rule that we set up for that app?


Is the system smart enough to check the custom detection rule before installing the app? Or is the custom detection rule not applied during the ESP phase and the app gets installed anyway?
- The background to the question is that we build an image via azure-OSDcloud, which already contains various apps (Office Suite, Foxit Reader, Citrix etc.) 

So if the custom detection rule does not apply during ESP phase, the app gets installed twice and that takes additional unneccessary time till the ESP phase is finished.


thats the custom detection rule for example:

$ProgramPath = Get-Item -Path "$Env:ProgramFiles\Microsoft Office\root\Office16\OUTLOOK.EXE" -ErrorAction SilentlyContinue
$ProgramVersion_target = '16.0.16731.20234'
$ProgramVersion_current = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($ProgramPath).FileVersion

if($ProgramVersion_current -ge [System.Version]$ProgramVersion_target){
    Write-Host "Found it!"
    Exit 0
    Exit 1


Thank you

0 Replies