TeamsStatus
TeamsStatus copied to clipboard
Service doesn't update status when using Env:AppData
The change made in this commit break the service unless it is running under your actual user account. By default the service runs as LocalSystem so cannot find the teams log file.
Reverting this change fixed the service for me.
I had the same problem after i changed the script with the commit. After i changed the service to log on as my own user instead of Local System it worked again. If the script is running under your own user it can read the $env:APPDATA variable.
This no longer works for me when running as a service, either under the system account, or my own account.
Instead, I have set to run as a schedule task:
and for those of you that leave your computer on 24/7, untick the "Stop task if it runs longer than"
