Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service doesn't update status when using Env:AppData #33

Open
bmdixon opened this issue May 12, 2021 · 2 comments · May be fixed by #34
Open

Service doesn't update status when using Env:AppData #33

bmdixon opened this issue May 12, 2021 · 2 comments · May be fixed by #34

Comments

@bmdixon
Copy link

bmdixon commented May 12, 2021

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.

@guyke01
Copy link

guyke01 commented May 13, 2021

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.

@bmdixon bmdixon linked a pull request May 14, 2021 that will close this issue
@jimmyeao
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants