Results 1 to 5 of 5

Thread: Set rights for given SID

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    3

    Question Set rights for given SID

    Hi all,

    during the installation of a program I have to set write-rights for all users on a registry-key (HKLM/Software/MyApp). In this key application-settings are stored. I want to set the rights during the first start of the application. The first start will be done by an admin.

    I know that the SID for "Everyone" is S-1-1-0. My question:

    How can I assign "Everyone" to this key? I have to use the SID and not the groupname "Everyone" since my app will be installed in different countries, and in any non-english-Windows "Everyone" has another name.

    Thanks in advance,

    awue

  2. #2

    Re: Set rights for given SID

    If you are using an MSI installation you can do this with an MSI call. You can also do this with WMI inside your application.

    Keep in mind the user has to have administrative rights to that area to set the security permissions.
    Luke Richey, MCSE
    Tometa Software, Inc.
    http://www.tometasoftware.com/
    Get stress relief at http://www.mrtometahead.com

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    3

    Re: Set rights for given SID

    Hi tometa,

    You can also do this with WMI inside your application.
    Do you have a sample how to do it? At this point I'm not working with MSI; so I have to do it during the first start of my app. And yes: during the first start the user has admin rights.

    Thanks, and a very good new year!

    awue

  4. #4

    Re: Set rights for given SID

    There are actually several options in this article including WMI and Regini

    http://www.windowsitlibrary.com/Content/237/2.html
    Luke Richey, MCSE
    Tometa Software, Inc.
    http://www.tometasoftware.com/
    Get stress relief at http://www.mrtometahead.com

  5. #5

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    3

    Re: Set rights for given SID

    Thanks a lot! Looks very promising.

    A very good year!

    awue

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width