Forum Discussion

oryxway's avatar
oryxway
Iron Contributor
Jul 17, 2024

MS Teams Detection in Intune

I need a proper detection script to ensure that my new teams installation is successful or not. Can I use this as a detection script? I see that this one and others I have used shows as failed
 
if ($null -eq (Get-AppxPackage -Name MSTeams)) {
Write-Host "New Teams client not found"
exit 1
} Else {
Write-Host "New Teams client found"
Exit 0
}
 
Some are showing as installed and some are showing as failed. I want to have a proper detection script for me  to ensure that the new teams is installed. Any help would be great.
 

 

Resources