From c7045b9c53efec4a7b26d18c6c928c50887ebf73 Mon Sep 17 00:00:00 2001 From: iamnikv Date: Wed, 29 Oct 2025 11:03:23 +0200 Subject: [PATCH] Original installation command failed to start service. This command worked for me. For some reason the service failed to start when using the original command: Start-Process -FilePath .\nssm.exe -ArgumentList 'install "Microsoft Teams Status Monitor" "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-command "& { . C:\Scripts\Get-TeamsStatus.ps1 }"" ' -NoNewWindow -Wait It worked for me when I used the command: Start-Process -FilePath .\nssm.exe -ArgumentList 'install "Microsoft Teams Status Monitor" "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-ExecutionPolicy Bypass -NoProfile -File C:\Scripts\Get-TeamsStatus.ps1"' -NoNewWindow -Wait --- Install.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Install.txt b/Install.txt index 0d29270..8d27b88 100644 --- a/Install.txt +++ b/Install.txt @@ -1,5 +1,5 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned Unblock-File .\Settings.ps1 Unblock-File .\Get-TeamsStatus.ps1 -Start-Process -FilePath .\nssm.exe -ArgumentList 'install "Microsoft Teams Status Monitor" "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-command "& { . C:\Scripts\Get-TeamsStatus.ps1 }"" ' -NoNewWindow -Wait -Start-Service -Name "Microsoft Teams Status Monitor" \ No newline at end of file +Start-Process -FilePath .\nssm.exe -ArgumentList 'install "Microsoft Teams Status Monitor" "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-ExecutionPolicy Bypass -NoProfile -File C:\Scripts\Get-TeamsStatus.ps1"' -NoNewWindow -WaitNoNewWindow -Wait +Start-Service -Name "Microsoft Teams Status Monitor"