Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
Active Directory
Create bulk test users in active directory
Last Post 25 Aug 2011 06:00 AM by
Karl Mitschke
. 1 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
ognyang
New Member
Posts:1
24 Aug 2011 04:46 PM
Hello guys,
Probably there is already such posts but I cant find any good scripts!
I am not familiar with powershell... yet :) but I want to..
I am reading some books but I have a task to create some bulk users.
I want to create 50 test users with naming convention "TestUser##" (## will be replaced with 01,02,03.. to 50)
The script will be runned on Win Srv 2k8R2. I found some scripts but they do not display the creation progress, so I can not monitor the process.
Where I can find such script?
Thank you very much in advance!!!
KR,
Ognyan Guglev
Karl Mitschke
Basic Member
Posts:457
25 Aug 2011 06:00 AM
Try this:
1..51 | ForEach { Net User "TestUser$_" P@ssW0rd /ADD /Domain}
From my blog post: Creating random users for a domain
http://unlockpowershell.wordpress.c...-a-domain/
Karl
http://unlockpowershell.wordpress.com
Co-Author, Windows PowerShell 2.0 Bible
-join("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Active Directory
--Exchange Server
--Lync Server
--SharePoint
--SQL Server
--System Center
--Non-Microsoft Products
--Books, Tools, and Videos
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
Active Directory
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2