TeamsStatus icon indicating copy to clipboard operation
TeamsStatus copied to clipboard

Service doesn't update status when using Env:AppData

Open bmdixon opened this issue 4 years ago • 2 comments

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.

bmdixon avatar May 12 '21 08:05 bmdixon

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.

guyke01 avatar May 13 '21 09:05 guyke01

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: image image image and for those of you that leave your computer on 24/7, untick the "Stop task if it runs longer than" image

jimmyeao avatar May 18 '21 14:05 jimmyeao