Notice: Due to size constraints and loading performance considerations, scripts referenced in blog posts are not attached directly. To request access, please complete the following form: Script Request Form Note: A Google account is required to access the form.
Disclaimer: I do not accept responsibility for any issues arising from scripts being run without adequate understanding. It is the user's responsibility to review and assess any code before execution. More information

SetACL and Service DACLs

If you have a Windows Service that you wish to secure so that only a couple of users can start and stop theis service then you will need to edit the services DACL to complete this operation.
NOTICE : This process chnaged the DACL on the Service, please do not use this command without understand what you are doing!
WARNING: If you RESET the DACLs on a Service you cannot restore them to their defaults as you have removed the "revoked" users from the DACLs,
SetACL Permissions
***
read
start_stop
full
Add the Group/User Required
******
setacl -on "\computerservice" -ot srv -actn ace -ace "n : domainuser ; p :start_stop"
Failsafe Groups/Users Already in List
*******
setacl -on "\computerservice" -ot srv -actn ace -ace "n : domainuser ; p :read"
Revoke Groups/Users Already in List
*********
setacl -on "\computerservice" -ot srv -actn ace -ace "n:system; p :read"
setacl -on "\computerservice" -ot srv -actn ace -ace "n:administrators; p :read"
Previous Post Next Post

نموذج الاتصال