Now that we have over computer names said, let's go ahead and join active directory, so to do that,
we need to, in the control panel, go to users.
And we need to go to lodging options first, we need to unlock the control panel.
And then we need to quit join domain now here we're going to type we're going to type in the name of
our domain and hit, OK?
And you can see right now it comes up with a client computer ID and it matches our hostname that we
had set before.
So now we need to put in an administrator user that has the permissions to join the domain.
And then we're being asked for the administrator password for our Mac, because we're going to be making
changes to the Mac.
All right, so right now it is drawing active directory and it will take a few moments now, as you
can see down here, we have something new and it shows the name of our domain and we have a green dot.
And that typically means that it's down to the domain.
Now, we're just going to wait for this to to finish and then we're going to run a couple of commands
to confirm that we are on the domain.
All right, so the command that I want to run is down config D, Python, Python show and.
If we take a quick look, you can see that it has the name of our domain and our computer account name,
which matches the hostname.
Now let's go ahead back to network advance wins and take a look at that.
So our net bios name changed from what was given out of the box to the name that matches our host name.
And when we joined Active Directory, that Hostname became the net bio's name.
That's why I said it's the host name that's important when joining Active Directory.
Now, let's go ahead and let's unbind from Active Directory and see what happens.
And all you have to do to do that is edit, click the name of the domain and click minus again, this
is going to be our active directory administrator.
And then had done.
And you can see that the that the greenlights not there anymore.
And now let's go ahead and run that same command and you see we get no output.
So that's how you can tell that we are not on the domain anymore.
And the next lesson, we're going to learn how to join the domain with a script.