Create a batch of test users
From MyWiki
# # Global variables # # User properties $ou = "OU=Users,OU=Test,OU=HK,DC=hk,DC=test" # Which OU to create the user in $initialPassword = "Password123" # Initial password set for the user $orgShortName = "AC" # This is used to build a user's sAMAccountName $dnsDomain = "acme.com" # Domain is used for e-mail address and UPN $company = "ACME Corp." # Used for the user object's company attribute $departments = ( # Departments and associated job titles to assign to the users @{"Name" = "Finance & Accounting"; Positions = ("Manager", "Accountant", "Data Entry")}, @{"Name" = "Human Resources"; Positions = ("Manager", "Administrator", "Officer", "Coordinator")}, @{"Name" = "Sales"; Positions = ("Manager", "Representative", "Consultant")}, @{"Name" = "Marketing"; Positions = ("Manager", "Coordinator", "Assistant", "Specialist")}, @{"Name" = "Engineering"; Positions = ("Manager", "Engineer", "Scientist")}, @{"Name" = "Consulting"; Positions = ("Manager", "Consultant")}, @{"Name" = "IT"; Positions = ("Manager", "Engineer", "Technician")}, @{"Name" = "Planning"; Positions = ("Manager", "Engineer")}, @{"Name" = "Contracts"; Positions = ("Manager", "Coordinator", "Clerk")}, @{"Name" = "Purchasing"; Positions = ("Manager", "Coordinator", "Clerk", "Purchaser")} ) $phoneCountryCodes = @{"DE" = "+49"} # Country codes for the countries used in the address file # Other parameters $userCount = 5000 # How many users to create $locationCount = 20 # How many different offices locations to use # Files used $firstNameFileMale = "Firstnames-m.txt" # Format: FirstName $firstNameFileFemale = "Firstnames-f.txt" # Format: FirstName $lastNameFile = "Lastnames.txt" # Format: LastName $addressFile = "Addresses.txt" # Format: City,Street,State,PostalCode,Country $postalAreaFile = "PostalAreaCode.txt" # Format: PostalCode,PhoneAreaCode
File:User list.zip <<<-------- Need to download these files as they are needed