TeamsStatus icon indicating copy to clipboard operation
TeamsStatus copied to clipboard

Original installation command failed to start service. This worked for me.

Open iamnikv opened this issue 2 months ago • 0 comments

I am not sure why or if this is a valid pull request. Just figured I do this instead of opening an issue.

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

iamnikv avatar Oct 29 '25 09:10 iamnikv