diff --git a/Get-TeamsStatus.ps1 b/Get-TeamsStatus.ps1 index 037c41f..cb95f63 100644 --- a/Get-TeamsStatus.ps1 +++ b/Get-TeamsStatus.ps1 @@ -68,7 +68,7 @@ $TeamsActivity = $MSTeamsLog | Select-String -Pattern ` 'NotifyCallEnded' | Select-Object -Last 1 # Get Teams application process -$TeamsProcess = Get-Process -Name ms-teams -ErrorAction Break +$TeamsProcess = Get-Process -Name ms-teams -ErrorAction SilentlyContinue # Check if Teams is running and start monitoring the log if it is If ($null -ne $TeamsProcess) {