Skip to content

Commit 6845e01

Browse files
authored
Fixed bug
The error action was set incorrectly when the script is looking for the ms-teams process.
1 parent 34ac1bb commit 6845e01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Get-TeamsStatus.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $TeamsActivity = $MSTeamsLog | Select-String -Pattern `
6868
'NotifyCallEnded' | Select-Object -Last 1
6969

7070
# Get Teams application process
71-
$TeamsProcess = Get-Process -Name ms-teams -ErrorAction Break
71+
$TeamsProcess = Get-Process -Name ms-teams -ErrorAction SilentlyContinue
7272

7373
# Check if Teams is running and start monitoring the log if it is
7474
If ($null -ne $TeamsProcess) {

0 commit comments

Comments
 (0)