Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
The error action was set incorrectly when the script is looking for the ms-teams process.
  • Loading branch information
EBOOZ authored Dec 25, 2024
1 parent 34ac1bb commit 6845e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Get-TeamsStatus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6845e01

Please sign in to comment.