如果您要向公司环境中添加新计算机,您很可能需要将其加入域。该过程相当简单,因为大部分工作都是由服务器完成的。对于Windows 7(Windows 7)、Windows 8 和 Windows 10,该过程也几乎相同。
对于Windows 10,还有一种加入域的额外方法,我将在底部提到这一点。如果缺少加入域的选项、您无法加入域等,我还会提到一些故障排除提示。
将计算机加入域
要开始,请单击开始(Start),然后单击控制面板(Control Panel)。现在点击系统和安全(System and Security),然后点击系统(System)。最后,点击高级系统设置(Advanced system settings)。如果您不在控制面板(Control Panel)中的类别视图中,您可以直接单击系统(System)。
现在单击计算机名称(Computer Name)选项卡,然后单击底部的更改按钮:(Change)
现在单击“域(Domain)”单选按钮并输入您要将此计算机加入的域名的名称。
请注意,在我的计算机上,域(Domain)和网络 ID(Network ID)按钮是灰色的!为什么这样?嗯,这是因为我有 Windows 7 Home Premium。
要在Windows 7/8/10中加入域,您需要升级到专业版(Professional)或旗舰(Ultimate)版。有点烦人(Kind),但你能做什么!专业(Professional)版还为您提供BitLocker以及备份到家庭或企业网络的能力。
这是迄今为止最简单的方法,它适用于所有版本的Windows,这很好。在Windows 10中,他们不断更改设置,某些对话框消失了,而新闻出现了。
Windows 10 加入域选项
在Windows 10中,有设置(Settings)对话框和控制面板(Control Panel)。两者在许多领域都有重叠,这有点令人困惑。如果您在Windows 10中单击(Windows 10)Start,单击Setting图标(齿轮图标),然后单击Accounts,您将在左侧栏中看到一个名为Access work or school 的选项。(Access work or school )
在右侧,您会看到一个名为Connect的加号按钮。继续并单击它,这将打开一个Microsoft 帐户(Microsoft Account)对话框。我们不会在此处尝试连接其他帐户,但您会在底部看到加入本地 Active Directory 域(join a local Active Directory domain)或加入 Azure Active 域的选项。(join a Azure Active domain)
例如,如果您单击本地Active Directory域,系统会要求您输入域名。您显然需要本地域管理员提供的这些信息和其他信息。
您可能会看到一堆其他网站说您应该转到Settings,然后System,然后About并单击Join Domain按钮,但这似乎已在较新版本的Windows 10中被删除。我什至尝试启用本地管理员(Administrator)帐户,但该选项仍然没有出现在那里。现在它真的只是为您提供有关您的计算机的信息,仅此而已。您无法从该屏幕加入域。
加入域疑难解答
如果您第一次尝试时一切顺利,那就太好了,但这种情况并不经常发生。尽管加入域通常是一个简单的过程,但您可能会遇到无数问题。我无法在这里涵盖所有这些问题,但我会提到一些后流行的问题和解决方案。
- 使用完全限定域名(Use fully qualified domain name)– 如果您正在输入域名并收到错误消息,您应该尝试使用FQDN而不是NetBIOS名称。
- 检查 DNS 设置(Check DNS settings)- 如果计算机无法正确解析DNS查询,或者无法联系DNS服务器,它将无法连接到域。尝试从 PC 和服务器执行NSLOOKUP并检查是否列出了条目。此外,检查客户端以确保它使用正确的DNS服务器而不是外部DNS服务器。
- 检查网络设置(Check network settings)- 如果所有其他设置都正确,则您的问题很可能与计算机上的端口被阻止有关。确保(Make)端口 445 已打开,并确保计算机上的网络类型为 Private。
- 暂时禁用 IPv6(Disable IPv6 temporarily) –有时 Windows(Sometimes Windows)在尝试加入域时会使用IPv6,如果您没有设置IPv6,它将无法工作。您可以尝试在NIC上禁用(NIC)IPv6并查看是否有效。在计算机加入域后,您始终可以重新启用它。
希望您的计算机已加入域!如果没有,请在此处发表评论,我会尽力提供帮助。享受!
Windows 7/8/10 – How to Join a Domain
If you’re adding a new computer to your corporate environment, you’ll most likely need to jоin іt to a domain. Τhe procedure is fairly simple as most of the work is done by the server. Thе process is also pretty mυch the same for Windows 7, Windows 8, and Windows 10.
For Windows 10, there is an extra way to join a domain and I’ll mention that down at the bottom. I’ll also mention some troubleshooting tips if the option to join a domain is missing, you can’t join the domain, etc.
Join Computer to Domain
To get started, click on Start and then Control Panel. Now click on System and Security and then click on System. Finally, click on Advanced system settings. If you’re not in the category view in Control Panel, you can just click on System directly.
Now click on the Computer Name tab and click on the Change button at the bottom:
Now click on the Domain radio button and type in the name of the domain name that you want to join this computer to.
Note that on my computer, the Domain and the Network ID buttons are grayed out! Why so? Well, it’s because I have Windows 7 Home Premium.
In order to join a domain in Windows 7/8/10, you need to upgrade to the Professional or Ultimate editions. Kind of annoying, but what can you do! The Professional edition also gives you BitLocker and the ability to backup to a home or business network.
This is by far the easiest method and it works on all versions of Windows, which is nice. In Windows 10, they keep changing the settings and certain dialogs have disappeared while news one have appeared.
Windows 10 Join Domain Option
In Windows 10, there is the Settings dialog and there is the Control Panel. Both overlap in many areas and it’s a bit confusing. If you click on Start in Windows 10, click on the Setting icon (the gear icon), then click on Accounts, you’ll an option called Access work or school in the left-hand column.
On the right-hand side, you’ll see a plus button called Connect. Go ahead and click on that, which will bring up a Microsoft Account dialog. We’re not trying to connect another account here, but you’ll see the options to join a local Active Directory domain or join a Azure Active domain at the bottom.
If you click on local Active Directory domain, for example, you’ll then be asked to enter in the domain name. You’ll obviously need this and other information from your local domain administrator.
You might see a bunch of other sites saying that you should go to Settings, then System and then About and clicking on the Join Domain button, but that seems to have been removed in the newer editions of Windows 10. I even tried enabling the local Administrator account and the option still didn’t show up there. Now it really just gives you info about your computer and that’s it. You can’t join a domain from that screen.
Troubleshoot Joining a Domain
It would be great if everything worked out the first time you tried, but that doesn’t happen often. Even though joining a domain is normally a simple process, there are a myriad of issues that you can run into. I won’t be able to cover all of them here, but I’ll mention a few of the post popular problems and solutions.
- Use fully qualified domain name – If you’re typing in the domain name and are getting back error messages, you should try using the FQDN instead of the NetBIOS name.
- Check DNS settings – If the computer is not properly resolving DNS queries or if it can’t contact the DNS server, it won’t be able to connect to the domain. Try to do an NSLOOKUP from the PC and server and check if the entries are listed. Also, check the client to make sure it’s using the proper DNS server and not external DNS servers.
- Check network settings – If all other settings are correct, you issue is most likely related to a port being blocked on the computer. Make sure port 445 is open and also make sure the network type on the computer is Private.
- Disable IPv6 temporarily – Sometimes Windows will use IPv6 when trying to join a domain and if you don’t have IPv6 setup, it won’t work. You can try disabling IPv6 on your NIC and seeing if that works. You can always re-enable it after the computer is joined to the domain.
Hopefully, you computer has been joined to the domain! If not, post a comment here and I’ll try to help. Enjoy!