Creating user accounts in XP
-
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).
-
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).
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) -
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)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).
-
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)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).
-
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).