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
Joined: Sat Feb 03, 2018 10:20 am

Create Service

Post by elilelonek » Thu Nov 15, 2018 1:11 pm

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: 6921
Joined: Tue May 29, 2007 4:43 pm

Re: Create Service

Post by Alexander Riedel » Thu Nov 15, 2018 2:27 pm

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

User avatar
jvierra
Posts: 13507
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Create Service

Post by jvierra » Thu Nov 15, 2018 2:33 pm

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 » Fri Nov 16, 2018 2:05 am

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!!!

User avatar
jvierra
Posts: 13507
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Create Service

Post by jvierra » Fri Nov 16, 2018 2:20 am

You will have to place a request for a new feature with Sapien here: https://www.sapien.com/requests

Locked