Create Service

Ask your Windows 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.
Locked
User avatar
elilelonek
Posts: 2
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Sat Feb 03, 2018 10:20 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: 7335
Joined: Tue May 29, 2007 4:43 pm

Re: Create Service

Post by Alexander Riedel »

[Moved to correct forum by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.

jvierra
Posts: 14335
Joined: Tue May 22, 2007 9:57 am
Contact:

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
Joined: Sat Feb 03, 2018 10:20 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: 14335
Joined: Tue May 22, 2007 9:57 am
Contact:

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

Locked