PS C:\scripts> .\Install.ps1
.\Install.ps1 : File C:\scripts\Install.ps1 cannot be loaded. The file C:\scripts\Install.ps1 is not digitally signed.
You cannot run this script on the current system. For more information about running scripts and setting execution poli
cy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\Install.ps1
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
And if you already manually have removed the service, it gives an error too:
PS C:\scripts> .\Install.ps1
Stop-Service : Cannot find any service with service name 'Microsoft Teams Status Monitor'.
At C:\scripts\TSFunctions.ps1:2 char:5
+ Stop-Service -Name "Microsoft Teams Status Monitor"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft Teams Status Monitor:String) [Stop-Service], ServiceCommandEx
ception
+ FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StopServiceCommand
Can't open service!
OpenService(): De opgegeven service is geen geïnstalleerde service.
After doing it for the second time, with the service installed it works great!
See error message:
So I first did the following:
And if you already manually have removed the service, it gives an error too:
After doing it for the second time, with the service installed it works great!