Normal 0 false false false EN-US X-NONE X-NONE
Would like to disable bulk users from list of Userid’s from text or excel file.
Here's a few details about the users:
- Can disable from list with User logon name: samAccountName
Example:
jdoe
jdoe1
jdoe2
jdoe3
What I usually do when disabling terminated users:
- Disable the account
- Remove the user from all groups except Domain
Users
- Move the user account to a Disabled
Users OU
I also do the following in the Exchange Console:
- Check the "Hide from Exchange
address lists" box on the General tab
I also do the following in Lync:
- Disable user in lync by unchecking “Enabled
for Lync Server”
If user not disabled do
Else If user disabled already
do
Else User not found
If it could prompt before continuing with something like
Disable account(s)
Disable following users:
Doe, Jon - Last Logon
Doe2, Jon – Last Logon
Doe3 , Jon - LastLogon
To continue Press enter:
**Write following to a text file with date/time – disabled (10/22/15 – time).txt
doe, Jon has been disabled
Lync disabled for jdoe
Mailbox Hidden from address list
Account disabled
Account Moved
Doe2, Jon already disabled.
Doe3, Jon – user not found.