From 0603e19109f23dd36db82fca2c386154ca2d534c Mon Sep 17 00:00:00 2001 From: EBOOZ Date: Fri, 9 Apr 2021 10:29:26 +0200 Subject: [PATCH] Increased logfile tail because of increased Teams client logging --- Get-TeamsStatus.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Get-TeamsStatus.ps1 b/Get-TeamsStatus.ps1 index 886fa33..71d4959 100644 --- a/Get-TeamsStatus.ps1 +++ b/Get-TeamsStatus.ps1 @@ -23,9 +23,6 @@ # Configuring parameter for interactive run Param($SetStatus) -# Enable or disable debugging -$Debug = $true - # Import Settings PowerShell script . ($PSScriptRoot + "\Settings.ps1") @@ -51,12 +48,12 @@ If($null -ne $SetStatus){ # Start monitoring the Teams logfile when no parameter is used to run the script DO { # Get Teams Logfile and last icon overlay status -$TeamsStatus = Get-Content -Path "C:\Users\$UserName\AppData\Roaming\Microsoft\Teams\logs.txt" -Tail 500 | Select-String -Pattern ` +$TeamsStatus = Get-Content -Path "C:\Users\$UserName\AppData\Roaming\Microsoft\Teams\logs.txt" -Tail 1000 | Select-String -Pattern ` 'Setting the taskbar overlay icon -',` 'StatusIndicatorStateService: Added' | Select-Object -Last 1 # Get Teams Logfile and last app update deamon status -$TeamsActivity = Get-Content -Path "C:\Users\$UserName\AppData\Roaming\Microsoft\Teams\logs.txt" -Tail 500 | Select-String -Pattern ` +$TeamsActivity = Get-Content -Path "C:\Users\$UserName\AppData\Roaming\Microsoft\Teams\logs.txt" -Tail 1000 | Select-String -Pattern ` 'Resuming daemon App updates',` 'Pausing daemon App updates',` 'SfB:TeamsNoCall',`