From b3756e65f4ad0c835079e8a8b1daa9affcff7392 Mon Sep 17 00:00:00 2001 From: Robert van Bregt Date: Tue, 16 Feb 2021 18:01:52 +0100 Subject: [PATCH 1/2] Check for manual Offline status --- Get-TeamsStatus.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Get-TeamsStatus.ps1 b/Get-TeamsStatus.ps1 index 636da81..f792558 100644 --- a/Get-TeamsStatus.ps1 +++ b/Get-TeamsStatus.ps1 @@ -115,6 +115,11 @@ If ($null -ne $TeamsProcess) { $Status = $lgInAMeeting Write-Host $Status } + ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - $lgOffline*" -or ` + $TeamsStatus -like "*StatusIndicatorStateService: Added Offline*") { + $Status = $lgOffline + Write-Host $Status + } If ($TeamsActivity -like "*Resuming daemon App updates*" -or ` $TeamsActivity -like "*SfB:TeamsNoCall*") { From b520e6f4efedbb41ad56ad0d02b914623e9958bc Mon Sep 17 00:00:00 2001 From: Robert van Bregt Date: Tue, 16 Feb 2021 18:31:09 +0100 Subject: [PATCH 2/2] Check for BRB status --- Get-TeamsStatus.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Get-TeamsStatus.ps1 b/Get-TeamsStatus.ps1 index f792558..0758051 100644 --- a/Get-TeamsStatus.ps1 +++ b/Get-TeamsStatus.ps1 @@ -31,6 +31,7 @@ $HAUrl = "" # Example: https://yourha.duckdns.org $lgAvailable = "Available" $lgBusy = "Busy" $lgAway = "Away" +$lgBeRightBack = "Be right back" $lgDoNotDisturb = "Do not disturb" $lgInAMeeting = "In a meeting" $lgOffline = "Offline" @@ -103,6 +104,11 @@ If ($null -ne $TeamsProcess) { $Status = $lgAway Write-Host $Status } + ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - $lgBeRightBack*" -or ` + $TeamsStatus -like "*StatusIndicatorStateService: Added BeRightBack*") { + $Status = $lgBeRightBack + Write-Host $Status + } ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - Do not disturb *" -or ` $TeamsStatus -like "*StatusIndicatorStateService: Added DoNotDisturb*" -or ` $TeamsStatus -like "*Setting the taskbar overlay icon - Focusing*" -or `