Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Creating user accounts in XP

Creating user accounts in XP

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++javascripttoolsdiscussion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil J Pearson
    wrote on last edited by
    #1

    Reposted here from Operating Systems / SysAdmin. I apologise if this is impolite but it seems more likely to get answered here. I need a simple, programmatic way to set up a small number of accounts on new PCs running Windows XP. I'm prepared to write script (VBScript or Javascript), .NET code (C#) or even an app in C++ Please can someone give me a clue as to where would be the best place to start. Just pointing me to something relevant on MSDN would be fine. Thanks in advance, Phil


    The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

    A 1 Reply Last reply
    0
    • P Phil J Pearson

      Reposted here from Operating Systems / SysAdmin. I apologise if this is impolite but it seems more likely to get answered here. I need a simple, programmatic way to set up a small number of accounts on new PCs running Windows XP. I'm prepared to write script (VBScript or Javascript), .NET code (C#) or even an app in C++ Please can someone give me a clue as to where would be the best place to start. Just pointing me to something relevant on MSDN would be fine. Thanks in advance, Phil


      The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

      A Offline
      A Offline
      Antony M Kancidrowski
      wrote on last edited by
      #2

      OK, try MSDN here NetUserAdd[^] Ant. I'm hard, yet soft.
      I'm coloured, yet clear.
      I'm fruity and sweet.
      I'm jelly, what am I? Muse on it further, I shall return!
      - David Williams (Little Britain)

      P 2 Replies Last reply
      0
      • A Antony M Kancidrowski

        OK, try MSDN here NetUserAdd[^] Ant. I'm hard, yet soft.
        I'm coloured, yet clear.
        I'm fruity and sweet.
        I'm jelly, what am I? Muse on it further, I shall return!
        - David Williams (Little Britain)

        P Offline
        P Offline
        Phil J Pearson
        wrote on last edited by
        #3

        Excellent! Thanks, I'm off and running.


        The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

        1 Reply Last reply
        0
        • A Antony M Kancidrowski

          OK, try MSDN here NetUserAdd[^] Ant. I'm hard, yet soft.
          I'm coloured, yet clear.
          I'm fruity and sweet.
          I'm jelly, what am I? Muse on it further, I shall return!
          - David Williams (Little Britain)

          P Offline
          P Offline
          Phil J Pearson
          wrote on last edited by
          #4

          OK, so I can add a user but NetGroupAddUser fails with NERR_GroupNotFound. NetQueryDisplayInformation will only display one group called "None"/"Ordinary users". The program is running as a local administrator and I've even tried impersonating Administrator. Any ideas?


          The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

          D 1 Reply Last reply
          0
          • P Phil J Pearson

            OK, so I can add a user but NetGroupAddUser fails with NERR_GroupNotFound. NetQueryDisplayInformation will only display one group called "None"/"Ordinary users". The program is running as a local administrator and I've even tried impersonating Administrator. Any ideas?


            The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).

            D Offline
            D Offline
            darkbyte
            wrote on last edited by
            #5

            Is the XP system connected to a Domain with Active Directory ? How about NetLocalGroupAddMembers() ?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups