Welcome to my journey of continuous discovery. Enjoy your visit.

Ugli Scripting
Ugli Scripting
  • Home
  • Blog
  • .PY
    • Python 2.7 on Windows
    • Python 2.7 on Ubuntu
    • Python 2.7 IDE Set up
    • Run Python Script via CLI
    • Adding Python Packages
    • Basic REST API
  • .PS1
    • Install AD Module Win 10
    • Connecting to MSO and EOP
    • Storing Script Variables
    • Storing Secure Strings
    • Storing User Credentials
    • Basic REST API
  • Sample Integrations
    • Isolate SEP Clients
    • Force Password Change
    • o365 Account Remediation
    • Threat Response Lists
    • Endpoint Scripts
  • SITQ Lab
    • Lab Resources
    • AD Lab Account Imports
    • DLP Sample
  • More
    • Home
    • Blog
    • .PY
      • Python 2.7 on Windows
      • Python 2.7 on Ubuntu
      • Python 2.7 IDE Set up
      • Run Python Script via CLI
      • Adding Python Packages
      • Basic REST API
    • .PS1
      • Install AD Module Win 10
      • Connecting to MSO and EOP
      • Storing Script Variables
      • Storing Secure Strings
      • Storing User Credentials
      • Basic REST API
    • Sample Integrations
      • Isolate SEP Clients
      • Force Password Change
      • o365 Account Remediation
      • Threat Response Lists
      • Endpoint Scripts
    • SITQ Lab
      • Lab Resources
      • AD Lab Account Imports
      • DLP Sample

  • Home
  • Blog
  • .PY
    • Python 2.7 on Windows
    • Python 2.7 on Ubuntu
    • Python 2.7 IDE Set up
    • Run Python Script via CLI
    • Adding Python Packages
    • Basic REST API
  • .PS1
    • Install AD Module Win 10
    • Connecting to MSO and EOP
    • Storing Script Variables
    • Storing Secure Strings
    • Storing User Credentials
    • Basic REST API
  • Sample Integrations
    • Isolate SEP Clients
    • Force Password Change
    • o365 Account Remediation
    • Threat Response Lists
    • Endpoint Scripts
  • SITQ Lab
    • Lab Resources
    • AD Lab Account Imports
    • DLP Sample

Active-directory Account Imports

Link to Files on GitHub

You can find the User Account .CSV(s), the Import script and the Mailbox activation scripts in My GitHub.

import ad users

Source Account CSVs

There are two sets of user accounts.  One is just a random group of Cartoons, TV Hosts Athletes and such.  I recommend using the Sample account CSV.


If you need to populate the accounts with Emails for Archiving or E-discovery testing, I have also included the Enron Accounts CSV.  You can search the internet and find the Enron Email Corpus in .PST format

Setting a Password

The script will set every user to the same password,  You can change the password by editing the PowerShell scripts.

Additional User Data

You can add additional User information, such as Department, to the CSV or via the Import PowerShell.  I simple search for AD User Account or the PowerShell Import-User command will give more detail.

Activating User Mailboxes

An annoying thing about AD and Exchange is the Mailbox does not get initialized. Usually you have to log in or send an email to the user to perform this initial set up.


I have included a .TXT file that includes a list of command to enable each account in the corresponding .CSV file.  For this step you need to copy all the lines and paste them into PowerShell.

Copyright © 2018 Ugli Scripting - All Rights Reserved.

  • Blog
  • CV

Powered by GoDaddy