I need to provide a specific SERVICE_START permission account for this Windows service.
There seem to be some methods for this here , but would prefer a method that is related to PowerShell and does not require external tools, for example. using the Get / Set-ACL cmdlets or calling some .NET API.
Does anyone know how to do this? Thanks in advance.
I think for this you should study subinacl.exe, which you can download here . From the download site, it is described as:
subinacl.exe
SubInACL - , , , , .
PowerShell :
SUBINACL /verbose=1 /service Spooler /grant=PC\Joe=LQSTOP
, .
.
http://get-carbon.org/
, (Apache 2.0 License) , .NET . , , , .
Powershell CmdLet https://bitbucket.org/splatteredbits/carbon/src/29f5983094d048030d6143923f4a6925d1a1a195/Carbon/Service/Grant-ServicePermission.ps1?at=default
.Net( ) https://bitbucket.org/splatteredbits/carbon/src/29f5983094d048030d6143923f4a6925d1a1a195/Source/Security/ServiceAccessRights.cs?at=default
Powershell v3 +.
Source: https://habr.com/ru/post/1752361/More articles:In Mercurial, why can't we undo commit when there are other modified files? - dvcsIs there a good way to edit text values in SQL Server Management Studio? - sql-serverPython question about time spent - pythonОперационная система Windows Mobile и DirectShow - c++weird "â" character in cmake generates makefile errors - c ++Setting up linux creation agent for teamcity - linuxИспользовать большое изображение (размер файла), но не препятствовать времени загрузки? - performanceHow to force Django URL Manager to use subdomain? - djangoUpdate the update panel through triggers when another update panel does, because the first one must have UpdateMode = Conditional - refreshget tag content using python - pythonAll Articles