Issue with Microsoft Teams installation detection via Intune

Jakub Wilczek 0 Reputation points
2025-04-10T11:19:02.83+00:00

Hi!

I'm currently attempting to deploy the new version of Microsoft Teams to users via Intune Win32 Apps. Each time, however, I receive the following error:

"The application was not detected after installation completed successfully (0x87D1041C)."

For bulk deployment, I use the installer teamsbootstrapper.exe. The application always installs successfully on the computers, but Intune cannot correctly detect its presence afterward.

For the detection method, I'm checking for the existence of the registry key PackageFullName located at:

HKEY_CURRENT_USER\Software\Classes\LocalSettings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\MSTeams_8wekyb3d8bbwe\Schemas

I have also tried using file detection via %localappdata%\Microsoft\WindowsApps\ms-teams.exe, but without success.

Additionally, I've followed suggestions from various articles recommending the detection method using %programfiles%\WindowsApps\MS_Teams_*. However, this approach isn't effective, as these folders persist even after Teams is uninstalled, causing incorrect detection and preventing a successful reinstallation.

Do you have any ideas to fix this issue?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,834 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jeremy 90 Reputation points
    2025-04-23T21:23:06.48+00:00

    I also deploy MS Teams to my devices using the teamsbootstrapper.exe method via a Win32 app. For detection, I use the "use a custom detection script" method, with the following script, which works perfectly for me:

    $Pkg = Get-AppxPackage -Name "MSTeams" -ErrorAction SilentlyContinue
    if ($null -ne $Pkg)
    {
    	Write-Host "Microsoft Teams $($Pkg.version) is installed."
    	Exit 0
    }
    else
    {
    	Write-Host "Microsoft Teams is not installed."
    	Exit 1
    }
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.