By joining MacBook to the Windows domain, you can configure your MacBook with your network, allowing for the sharing of folders, files, and connected printers.
Mac computers typically use the Apple File Protocol (AFP) for file sharing, whereas Windows machines rely on Server Message Block (SMB). Although AFP and SMB are not inherently compatible, you can bridge this gap by setting up your Mac to join the Active Directory. To connect your MacBook to a Windows domain using the Directory Utility, follow these steps
On your Mac, click on “System Settings” in the Dock and then choose “Users & Groups” from the left section.
If prompted, click the “Lock” icon and enter your administrator username and password to unlock the settings.
Click on “Edit” under the Network Account Server section.

Select the “Open Directory Utility…” button.
If needed, click the “Lock” icon again, provide your administrator credentials
Choose “Active Directory” and click the Pencil icon to edit.

In the Active Directory Domain field, enter the domain name. The format should resemble “ad.domain.com.”
Type a computer name in the Computer ID field and then click the “Bind…” button.
Fill in the Username and Password fields with an administrator’s credentials for Active Directory. If you do not have this information, contact your system administrator.
Click “OK,” then hit “Apply.” Restart your Mac to apply the changes.