best business builder

Creating Test Users In Bulk Using Powershell

There is always a requirement to create test users in bulk in your lab, maybe even in live network to test something. You can quickly create mailbox users using a one liner. Run the command.

1..100 | ForEach { Net User “User$_” MyPassword=01 /ADD /Domain; Enable-Mailbox “User$_” -Database “Mailbox Database”

Moral of the story – Do read the tips…

Another method which I use very often is shown below. Get a password and store it as a secure string in a variable and use the variable in the new mailbox creation process.

$password = Read-Host “Enter Password” -AsSecureString

Then run the command shown in the snapshot to create test users in bulk. Change the numbers depending upon the number of test users you need.


Got a project that needs expert IT support?

From Linux and Microsoft Server to VMware, networking, and more, our team at CR Tech is here to help.

Get personalized support today and ensure your systems are running at peak performance or make sure that your project turns out to be a successful one!

CONTACT US NOW
best vpn deal