Create Service

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 5 years and 4 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
elilelonek
Posts: 2
Last visit: Sat Nov 30, 2019 8:39 am

Create Service

Post by elilelonek »

hi,

there is a way to create a service in PowerShell Studio with "CanStop = $False"
And also making all service fields in Service properties greyed out? (Like Mcafee\Symantec AntiVirus Services that cannot be Stopped.)

Thanks!!
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: Create Service

Post by Alexander Riedel »

[Moved to correct forum by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Create Service

Post by jvierra »

The easiest way to do this with PS services is to set a restrictive ACL on the service.
User avatar
elilelonek
Posts: 2
Last visit: Sat Nov 30, 2019 8:39 am

Re: Create Service

Post by elilelonek »

This is true, but I need you to test for the possibility of using PSS on CANSTOP with TRUE or FALSE in the service options ( like C# ) because ACL is for me manipulated, and Stop a Service that configured with CANSTOP FALSE will be more difficult, thereby preventing the service from being interrupted by human error.

can you please check if you have in Powershell Studio this setting or can you add it?

thanks!!!
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Create Service

Post by jvierra »

You will have to place a request for a new feature with Sapien here: https://www.sapien.com/requests
This topic is 5 years and 4 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