|
-
Aug 18th, 2005, 06:48 PM
#1
Thread Starter
Addicted Member
Active directory question
What is the best way to create several users all at one time. I can't imagine having to add several dozen users just by the AD users and computers snap in.
-
Aug 26th, 2005, 06:15 PM
#2
Re: Active directory question
You can add users via the command prompt and a batch file. That what I did when I work for a school which had hundreds of new students every year... If you want I can dig up the commands.
TPM
Add yourself to the VBForums Frappr Map!!
-
Aug 28th, 2005, 01:56 PM
#3
Thread Starter
Addicted Member
Re: Active directory question
I would like the commands. Thanks!!
-
Aug 29th, 2005, 12:20 PM
#4
Re: Active directory question
I found this which is probably your easiest option:
http://support.microsoft.com/?kbid=199878
TPM
Add yourself to the VBForums Frappr Map!!
-
Aug 29th, 2005, 01:51 PM
#5
Re: Active directory question
To create a user using ADSI...
VB Code:
Set DomainObj = GetObject("WinNT://Domain")
Set UserObj = DomainObj.Create("user", "vb-guru")
UserObj.SetInfo
Set UserObj = Nothing
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 30th, 2005, 12:56 AM
#6
Re: Active directory question
 Originally Posted by -TPM-
You can add users via the command prompt and a batch file. That what I did when I work for a school which had hundreds of new students every year... If you want I can dig up the commands.
Did you have any problems with permissions when executing those commands from DOS? Got any example code?
-
Aug 30th, 2005, 10:14 PM
#7
Thread Starter
Addicted Member
Re: Active directory question
I tried the solution that TPM suggested (the MS link) and it said it couldn't find a PDC to handle my request. I was on the Primary Domain controller when I tried it too.
-
Sep 1st, 2005, 01:15 PM
#8
Re: Active directory question
Hmm it was a long time ago I did it (like 6 years) I don't rememer there being any problems with setting security. Digging around I found a referance to csvde in windows help, it says it's for importing csv files into active directory so that may work... I'll keep digging and try to find the command I used.
TPM
Add yourself to the VBForums Frappr Map!!
-
Sep 1st, 2005, 01:35 PM
#9
Re: Active directory question
Ok you should be able to use : net user [username] [password] /add [domain]
I think that's what i used...
TPM
Add yourself to the VBForums Frappr Map!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|