- 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
- 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