Win Service permissions

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
daniel kusnir
Posts: 60
Joined: Thu May 25, 2017 8:22 am
Answers: 1

Win Service permissions

Post by daniel kusnir »


i have a service that checks MS Teams status, and if status changes, it calls a script that changes Skype status.

When i call a script manually, all is good, however via service, it does not run.

i tried to run service under default service account, my account & using credentials ,however script does not run. i also tried to call cmd to call the script :)
but this does not work either.

Do you know how to set service to interact with the local scripts ?

User avatar
Alexander Riedel
Posts: 7601
Joined: Tue May 29, 2007 4:43 pm
Answers: 2
Been upvoted: 6 times

Re: Win Service permissions

Post by Alexander Riedel »

"Don't work" is a little too vague. Can it not find the script? Access denied? Is it in a personal user folder? Script runs but does not work?
I am sure you get some kind of error message or return value.
Alexander Riedel
SAPIEN Technologies, Inc.