diff --git a/Install.txt b/Install.txt index 9c207f3..a1ed171 100644 --- a/Install.txt +++ b/Install.txt @@ -1,3 +1,4 @@ +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned 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 diff --git a/README.md b/README.md index c6f4512..4dbf235 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ sensor: * Replace `` with the URL to your Home Assistant server * Start a elevated PowerShell prompt, browse to C:\Scripts and run the following command: ```powershell +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned 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"