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.
This topic is 3 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
daniel kusnir
Posts: 75
Last visit: Tue May 23, 2023 10:50 am
Answers: 1

Win Service permissions

Post by daniel kusnir »

hi

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: 8489
Last visit: Thu Apr 18, 2024 1:15 pm
Answers: 20
Been upvoted: 37 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.
This topic is 3 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked