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"