如何判断电脑是否加入域 是否登陆到域

本文介绍如何在Windows 7/Vista、Windows XP及Mac OS X上确定您的计算机是否已加入ActiveDirectory域,并判断您当前是登录到本地计算机还是ActiveDirectory。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


This page helps you tell whether your computer is connected to Active Directory (and, if so, which Active Directory you've connected to).

Use the following steps to determine whether your computer is joined to an Active Directory domain, and, if so, whether you are logged in to the domain or to the local computer.

Windows 7 or Vista

Checking whether your computer is joined to Active Directory:

  • Right mouse click on the Computer icon
  • Select Properties
  • Look under the Computer name, domain, and workgroup settings for either one of these entries:
    • Domain:  ad.uillinois.edu
      (means you are connected to the campus UOFI Active Directory)
    • Domain:  ad.uiuc.edu
      (means you are connected to the campus UIUC Active Directory)

If you have a Domain: entry that is not one of these two, you may be part of a departmental Active directory. If you have an entry that starts with Workgroup: then your device is not joined to an Active Directory.

Checking whether you're logged in to the AD or the local machine:

Even if your computer is joined to the Active Directory, you may be logged in either to the Active Directory or to your local machine. To check:

  1. Open the Start menu, then type cmd in the Search box and press Enter.
  2. In the command line window that appears, type set user and press Enter.
  3. Look at the USERDOMAIN: entry. If the user domain contains your computer's name, you're logged in to the computer. If it contains the Active Directory's name, you're logged in to the Active Directory.

Windows XP

Checking whether your computer is joined to Active Directory:

  • Right mouse click on the Computer icon
  • Select Properties
  • Click the Computer Name tab.
  • Look under the domain field for either one of these entries:
    • Domain:  ad.uillinois.edu
      (means you are connected to the campus UOFI Active Directory)
    • Domain:  ad.uiuc.edu
      (means you are connected to the campus UIUC Active Directory)

If you have a Domain: entry that is not one of these two, you may be part of a departmental Active directory. If you have an entry that starts with Workgroup: then your device is not joined to an Active Directory.

Checking whether you're logged in to the AD or the local machine:

Even if your computer is joined to the Active Directory, you may be logged in either to the Active Directory or to your local machine. To check:

  1. Open the Start menu, then type cmd in the Run box and press Enter.
  2. In the command line window that appears, type set user and press Enter.
  3. Look at the USERDOMAIN: entry. If the user domain contains your computer's name, you're logged in to the computer. If it contains the Active Directory's name, you're logged in to the Active Directory.

Mac OS X

Most Macs on campus are not joined to the campus Active Directory. However, some may be.

Checking whether your computer is joined to Active Directory:

  • Open the Directory Utility.
    • 10.5: In Finder, click Applications, then double-click Utilities, then double-click Directory Utility.
    • 10.6: In System Preferences, click Accounts, then click Login Options. (You may need to click the Make Changes lock symbol and log in to this section of interface.) Click Join next to Network Server. In the window that appears, click Open Directory Utility.
    • 10.7: In System Preferences, click Users and Groups, then click Login Options. (You may need to click the Make Changes lock symbol and log in to this section of interface.) Click Join next to Network Server. In the window that appears, click Open Directory Utility.
  • If Active Directory is NOT checked, then your computer is not joined to an Active Directory.
    If Active Directory IS checked, select it from the list and click the edit pencil to the lower left to see what domain it is joined to.
    (You will need to click the Make Changes lock symbol and log in to see whether your computer is part of a domain.)
  • Look under the Active Directory Domain field for either one of these entries:
    • Domain:  ad.uillinois.edu
      (means you are connected to the campus UOFI Active Directory)
    • Domain:  ad.uiuc.edu
      (means you are connected to the campus UIUC Active Directory)

If you have an Active Directory Domain entry that is not one of these two, you may be part of a departmental Active directory.

链接:

http://social.msdn.microsoft.com/Forums/en-US/6a03147b-86fc-4d2d-a5d0-ce2896d8ae39/ad

http://www.cites.illinois.edu/network/activedirectory.html


将计算机加入 Active Directory 是构建企业级网络管理环境的重要步骤。以下是具体的操作流程及注意事项,适用于 Windows 客户端和服务器操作系统: ### 1. 确保网络与 DNS 配置正确 在尝试加入之前,必须确保客户端计算机的网络配置正确,并且能够解析目标控制器(Domain Controller, DC)的 DNS 记录。建议将 DNS 设置为指向控制器的 IP 地址。 - 检查是否缺少目标 AD 的正向查找区、_msdcs 区或 LDAP SRV 记录。 - 确认主机 A 记录存在且指向正确的 IP 地址,并可被客户端访问 [^3]。 ### 2. 打开系统属性并更改计算机所属 对于 Windows 10 或 Windows Server 系统,操作步骤如下: 1. 右键点击“此电脑”或“我的电脑”,选择“属性”。 2. 在“系统”页面中,找到“计算机名、和工作组设置”部分。 3. 点击“更改设置”按钮,打开“系统属性”对话框。 4. 切换到“计算机名”选项卡,点击“更改”按钮。 5. 在弹出的窗口中,选择“”,输加入的 Active Directory 名(如 `fjnu.local`)。 6. 输具有加入权限的管理员账户凭据。 7. 单击“确定”后,系统会提示重启以完成加入过程 [^4]。 ### 3. 使用命令行方式加入(可选) 也可以通过命令行方式使用 `netdom` 或 PowerShell 来加入,适用于批量部署场景。 ```powershell Add-Computer -DomainName "fjnu.local" -Credential (Get-Credential) ``` 该命令会提示输管理员的用户名和密码,并将当前计算机加入指定 [^4]。 ### 4. 加入后验证 成功加入后,重启计算机。首次使用用户登录时,系统会自动更新计算机名称为全限定名格式(如 `PC1.fjnu.local`),并在系统信息中显示所属 [^4]。 ### 5. 故障排查建议 如果遇到无法加入情况,请检查以下几点: - 确保使用的账户具有加入的权限。 - 确认目标控制器可用且网络可达。 - 检查 DNS 是否正确解析了控制器的 SRV 和 A 记录。 - 如果使用 FQDN 无法加入,尝试使用 NetBIOS 名称进行操作 [^2]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值