How to Join a Mac to a Windows Domain

- select the contributor at the end of the page -

Updated 3/4/2020

Anyone who’s been faced with getting Windows and Macs to play together within the same company or team knows that it can be tricky. The good news is you can join a Mac to a Windows domain by going into the system settings of your computer and reformatting them to recognize a different IP address as the primary domain. Follow these step-by-step instructions to finally get your Mac to speak to your Windows domain. 

Tell me if this sounds familiar. You come into work one day and your boss calls you into his office and says he got a new laptop. You arrive at his office door and realize your boss bought a Mac. He wants to be able to access all the company files stored on your Windows domain from his new Mac. Or maybe the scenario is a bit different. Your company decides to create a new department for graphical design and marketing and all the designers use Macs.

So what do you do? Not to worry, you can join a Mac to a Windows domain. I'm going to show you how it's done. Let's walk through joining Snow Leopard to a Windows Server 2008 domain.

 

(These are older operating systems, but these general steps should still work the same on current systems.)

Setting Network and User Options on a Mac

Windows domains rely on DNS for Active Directory to work correctly so the first thing we need to do is set a static DNS address on your Mac. We need to use the IP address of your Windows domain controller for this setting. 

  • Click the Apple in the top left corner and choose System Preferences. 

  • Click Network to open your network settings.

How to Join a Mac to a Windows Domain

Now you should be at your Network settings screen.

How to Join a Mac to a Windows Domain - 2

By default your network adapter is set to DHCP. Depending on the network connection you are going to use you will need to change this setting to Manually.

Keep in mind if you are setting a static address on your Mac and you take it to another network you might need to change this setting back to DHCP. I would suggest using the wired or Ethernet connection for your static address and use the wireless for DHCP. In this example I am setting a static address on the Ethernet connection.

My Windows domain controller has an IP address of 192.168.1.172 so I will put this in the DNS section. I'm setting my IP address to 192.168.1.171 for this example. Fill in your IP address, subnet, gateway, and DNS according to your network settings.

How to Join a Mac to a Windows Domain - 3

  • Click the back button to go back to System Preferences.
  • Choose Accounts.

How to Join a Mac to a Windows Domain - 4

  • Click the Lock to make changes to these settings.
  • Click the Join button next to Network Account Server

How to Join a Mac to a Windows Domain - 5

  • Click the Open Directory Utility button

How to Join a Mac to a Windows Domain - 6

You should now be at the Directory Utility

  • click the Lock to make changes
  • Make sure Active Directory is checked, highlight it, and then click the Pencil to edit this setting.

How to Join a Mac to a Windows Domain - 7

Here you can enter your domain information and computer ID. For this example the domain is hq.test.us and the computer ID is Mac. The computer ID is the computer name that will show up in Active Directory once the Mac is joined to the domain.

How to Join a Mac to a Windows Domain - 8

  • Click the arrow to Show Advanced Options
    • This gives you 3 extra options you can configure. To keep it simple I usually leave these settings default except for the Administrative section. 
  • Click the Administrative button and enter the IP address or the FQDN of your domain controller in the Prefer this domain server section. 
    • For this example I used the IP address of my domain controller 192.168.1.172. You can also specify groups that are allowed administration privileges.

How to Join a Mac to a Windows Domain - 9

  • Click the Bind button and you will be prompted for credentials. 
  • Enter your domain administrator username and password and click OK.

How to Join a Mac to a Windows Domain - 10

You should see it progress through steps 1-5 as you are authenticated and joined to the domain.

How to Join a Mac to a Windows Domain - 11

Now you should be joined to the domain and the Bind button changes to Unbind.

How to Join a Mac to a Windows Domain - 12

  • Click OK and then click Apply in the Directory Utility window. 
  • Close the Directory Utility. Now you should be back at the Accounts window. Note the green dot and domain name next to Network account server.

How to Join a Mac to a Windows Domain- 13

 

Logging In with Windows Credentials on Your Mac

Now you should be able to login to the Mac with your Windows domain credentials. Log off the current user you are logged in with. When you get back to the login screen choose Other.

How to Join a Mac to a Windows Domain - 14

  • Enter your Windows domain credentials.

How to Join a Mac to a Windows Domain - 15

That should get you logged into the computer with your domain credentials. So now what? How do you access the files on the server?

We will need to map drives to the shared folders on the server so you can access the files.

  • From Finder click Go then click Connect to Server. Since Mac uses SMB we need to use this syntax: smb://servername/share
  • Click Connect.

How to Join a Mac to a Windows Domain - 16

Note that you will not be prompted for credentials to connect because we are logged in with our domain account. You can also connect to Windows shared folders with the same syntax and a username and password if your Mac is not joined to the domain.

 

Mac on Windows Domain: Is it Worth it?

Now I bet you're wondering, is this worth it?

Joining a Mac to a your domain is not for the faint of heart and can get tricky depending on your environment. There can be issues with joining Macs to a .local domain and there can also be reverse DNS issues to be aware of. With these things in mind, there are definitely some things to consider before joining your Mac to a Windows domain.

Some may wonder what the benefits are of knowing how to add a Mac to a Windows domain. It mostly helps with accessing files on your Windows server without authenticating every time. It also helps with user account management and alleviates the need to have separate user accounts on the local Mac computer and on the Windows domain.

In my opinion, if you have a mobile Mac user you probably wouldn't join it to your domain, but would instead authenticate when needed. If you have Mac desktop computers and multiple users logging into them and using them daily, joining them to the domain is probably a better solution. Overall it's up to you how you want to configure it but hopefully, this gives you a good baseline to start with.

Get our content first. In your inbox.

Loading form...

If this message remains, it may be due to cookies being disabled or to an ad blocker.

Contributor

Eric English

Eric English is an IT Consultant for small businesses and supports a variety of environments. Eric has an Associate Degree in Computer Network Systems and a Bachelors Degree in Information Systems Security from ITT Technical Institute. He has experience in network administration for banks, churches, law firms, and a number of other small businesses. Eric specializes in Windows operating systems maintenance and administration, and has 5 years of experience in the field. (MCP)