DSC - Manage user permissions on Windows service

Welcome Forums DSC (Desired State Configuration) DSC - Manage user permissions on Windows service

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 month, 3 weeks ago.

  • Author
    Posts
  • #165556

    Participant
    Topics: 2
    Replies: 1
    Points: -9
    Rank: Member

    Hey everyone,

    Pretty new on DSC sphere, I'm looking for a way to manage permissions on a Windows services. We have daily scheduled tasks running under a dedicated user and this user must be able to restart his own dedicated Windows service (running under the same account as the task). The problem is the following, the team updating the product isn't able to manage permissions on services on their own, so I would like to have a DSC (if exists) that allow me to grant privileges to certain services. I found Carbon but it's working only as PS command not DSC implementation. And for the rest found only services creation/delete/state.

    Are you aware of anything that can help me on this ?

    Thanks a lot for your time 🙂

  • #165742

    Senior Moderator
    Topics: 8
    Replies: 1041
    Points: 3,440
    Helping Hand
    Rank: Community Hero

    so I would like to have a DSC (if exists) that allow me to grant privileges to certain services

    to whom ? is it another service/user account ?

  • #168286

    Participant
    Topics: 2
    Replies: 1
    Points: -9
    Rank: Member

    so I would like to have a DSC (if exists) that allow me to grant privileges to certain services

    to whom ? is it another service/user account ?

    Grant a user service account the permission to restart a service windows service. (http://woshub.com/set-permissions-on-windows-service/)

    In the meantime, I found this : https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/windows/scriptresource Should I go in that direction ?

You must be logged in to reply to this topic.