WEBVTT

00:00.480 --> 00:07.170
Do it on user accounts in Active Directory power show model there is a common cloud called remove the

00:07.170 --> 00:11.390
user to delete user accounts from Active Directory.

00:11.580 --> 00:19.860
Alternatively there are removed as a the object command left can be used to remove the user command

00:19.980 --> 00:24.880
that is designed to deal with user accounts removal will you do this.

00:24.900 --> 00:28.530
Come on let's throw all the examples in this lesson.

00:28.590 --> 00:36.210
Sometimes the request for removal of user accounts are very often especially if the organization is

00:36.210 --> 00:44.310
quite large and an I.T. person gets a request to delete user accounts on a frequent basis either when

00:44.310 --> 00:51.420
an employee leaves the organization or they turn down the offer a job before joining.

00:51.590 --> 00:59.160
Though most of organizations want to delete user accounts when an employee leaves the organization instead

00:59.520 --> 01:07.830
they will hide this from the Global Address List or book remove them from all groups disable the mailbox

01:08.160 --> 01:11.450
and keep their I.D. in a disabled state.

01:11.480 --> 01:19.100
So each account can be enabled to have the employee rejoin the company later which happens quite often.

01:19.260 --> 01:27.540
And spare us much time and effort for that I.T. person removing a user account from Active Directory

01:27.730 --> 01:29.690
a straightforward process.

01:29.700 --> 01:37.890
You just need to possibly distinguish name or DMH or object to do your ID or see it or say my account

01:37.950 --> 01:44.070
name to the identity parameter or remove a user command left.

01:44.100 --> 01:53.640
So let's remove some user will type removed say the user identity Lappe user for when this command is

01:53.640 --> 01:57.440
executed it will ask for promotion of delusion.

01:57.600 --> 02:03.210
Since deletion is a critical aberration Active Directory module warns about it.

02:03.390 --> 02:10.290
If you are certain that the inputs are correct and you don't want to get prompted for confirmation said

02:10.290 --> 02:15.200
the Confirm parameter and well you to it false.

02:15.240 --> 02:23.690
So let's type removed as a user identity or app user 5 and confirm parameter is false.

02:23.700 --> 02:29.490
Well you similarly to delete user records by reading from a text file.

02:29.490 --> 02:32.030
We can use the following command.

02:32.100 --> 02:40.350
Get content from the text file and pipe it to the folder and code for each user in this file.

02:40.350 --> 02:41.970
Do the following.

02:41.980 --> 02:51.300
Remove the user with identity parameter from the file and there's a kind of form parameter to get content

02:51.600 --> 03:00.020
coming out reads the user names from users dot 60 and potted them to remove the user command let to

03:00.070 --> 03:03.030
delete their accounts one after another.
