Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8854869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:59:01+00:00 2026-06-14T13:59:01+00:00

Is is possible to specify the SID when creating a new local group account?

  • 0

Is is possible to specify the SID when creating a new local group account?

I’ve successfully created a new group using the NetLocalGroupAdd function by specifying information level 1 (LOCALGROUP_INFO_1) but his creates the group with a different SID each time. This beahviour I expected.

What I would like to do is to specify the SID when creating the group account. It isn’t possible to use NetLocalGroupAdd with level 3. So I moved to look at NetGroupAdd. But this function creates a global group rather than a local one.

Is there a way to do this either during the creation of the group or update the SID with the desired one after the group has been created.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:59:03+00:00Added an answer on June 14, 2026 at 1:59 pm

    You can’t do that. Any SID generated on your particular machine is issued that machine’s local security authority. (Okay, or the domain security authority if you’re talking about a domain controller) That means, it will always have the form
    S-1-5-21<the machine LSA SID>-<random local identifier of the user/group>.

    This is because the structure of a SID is hierarchical. For instance, all SIDs under NT AUTHORITY have the prefix S-1-5, because that is NT AUTHORITY’s SID. (e.g. NT AUTHORITY\SYSTEM is S-1-5-18) Your machine’s LSA isn’t allowed to issue a SID that doesn’t belong under its authority, which is going to be the S-1-5-21<random number generated when Windows is installed> SID.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to specify that a return type of a function is the
Is it possible to specify different access modifiers for property getter and setter using
Is it possible to specify the opacity of text written using the Graphics.DrawString method?
Is it possible to specify the root controller when using the built in grails
Is it possible to specify the publisher name for Windows's User Account Control (UAC)
Possible Duplicate: Specify a sender when sending mail with Python (smtplib) I'm using smtplib
Is it possible to specify html attributes while using the form_for helper methods? For
Is it possible to specify a build action, for example install using Xcode GUI?
Is it possible to specify a lowercase only output when using Mcrypt? This is
Is it possible to specify a method block parameter in Objective-C without using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.