top of page
Search

How to generate random users information for Active Directory

Updated: Mar 17, 2019


Here is a function that will generate random user information. The information created can be used to create Active Directory accounts or sample HR feed data. I designed this script to populate a Staging Active Directory server so I could test out scripts with a Lab Active Directory.


Also, the script can also create full ORG structure. CEO at the top, VP then managers and last subordinates. With the ORG structure in-place, you can create PowerShell code as if you are working on a real corporate environment.






 

Code Examples:

Get-RandomUser


 

Create Full ORG with 2 additional Employees

Get-RandomUser -Mode StaffandEmployees -NumberofUsers 2



746 views0 comments

Recent Posts

See All
bottom of page