Configuration Manager CB version 1610 has a confirmed bug in detecting Universal Windows Platform (UWP) apps.
The Detection Method is correctly created, but the script execution on client side is ignoring the app version.
Updating an UWP will always result in ‘Already Compliant’
Rebuild:
- Create Application from appx-/appxbundle-file as ‘Windows app package’
- Check Detection Method
- Deploy to test-client
- Create newer version of the same application
- Check Detection Method
- Deploy to test-client
- App is not updated
- Monitoring shows ‘Already Compliant’
- Client log shows the detection script (“C:\Windows\CCM\SignedScripts\detectwindows8app.ps1”) is executed w/o parameters
Workaround:
- Create Application as script
- Use the existing script (“C:\Windows\CCM\SignedScripts\installwindows8app.ps1”) in Deployment Type per platform
- Handover parameter
e.g.
-AppPath "yourapplication.appx" and -DependencyPath "Dependencies\x64\Microsoft.NET.Native.Framework.1.3.appx" "Dependencies\x64\Microsoft.NET.Native.Runtime.1.4.appx" "Dependencies\x64\Microsoft.VCLibs.x64.14.00.appx"
- Use script as Detection Method
e.g.
AppxPackageFullName = "%YourPackageFullName%" $exists = Get-AppxPackage | Where-Object {$_.PackageFullName -match $AppxPackageFullName} if ($exists) { Write-Host "Installed" }
Please provide Install Command..
Hope below detection rule works:
Try { Set-ExecutionPolicy -ExecutionPolicy ‘ByPass’ -Scope ‘Process’ -Force -ErrorAction ‘Stop’ } Catch {}
$WhiteBoard = Get-AppxPackage -AllUsers -Name “Microsoft.Whiteboard”
If ($WhiteBoard.Name -eq “Microsoft.Whiteboard”)
{Write-Host “Installed”}
Else
{Write-Host “Not Installed”}
LikeLike