Skip to content

PowerShell script for terminating users in Active Directory

License

Notifications You must be signed in to change notification settings

wes214/ad-user-term

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation


wes214
wes214

An Active Directory termination script for running against a single or multiple users.

Key Features

  • Uses employeeNumber field for unique ID (Change for your enviroment)
  • Disable User Account
  • Create file containing existing groups of user
  • Output manager to file created
  • Remove all groups from user
  • Set random password
  • Add description onto the account that the script was run also username and date of person who ran it
  • Move user object into specified directory

How To Use

  • use -Verbose for script running output
# Running againt multiple users or file
$ 12345, 54321 | ./ad-term.ps1

# run against single user
$ ./ad-term.ps1 -EmployeeNumber 12345

About

PowerShell script for terminating users in Active Directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published