How do I find out which computer is the domain controller in Windows programmatically?

前端 未结 7 949
星月不相逢
星月不相逢 2021-01-30 08:17

I am looking for a way to determine what the Name/IP Address of the domain controller is for a given domain that a client computer is connected to.

At our company we hav

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 08:29

    Run gpresult at a Windows command prompt. You'll get an abundance of information about the current domain, current user, user & computer security groups, group policy names, Active Directory Distinguished Name, and so on.

提交回复
热议问题