Get all DCs name in a domain BUT some with multiple IPs

Sylvain MALAGRE 21 Reputation points
2020-09-15T14:05:34.62+00:00

Hi guys,

I would like to get all the DCs running in my domain with their IP.

I found a script that do this but in some DCs, multiple IPs are set in the IPv4 properties so I obtain only one IP instead of x with the script.

Do you have an idea please for getting all the info ?

Thanks

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,579 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Dave Patrick 426.2K Reputation points MVP
    2020-09-15T14:09:20.99+00:00

    but in some DCs, multiple IPs are set in the IPv4 properties

    Multi-homing a domain controller will always cause no end to grief for active directory DNS

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Sylvain MALAGRE 21 Reputation points
    2020-09-15T15:20:09.267+00:00

    I do know but this is the situation ... The customer has implemented some DCs with several IPs

    0 comments No comments

  3. Dave Patrick 426.2K Reputation points MVP
    2020-09-15T15:30:28.69+00:00

    This PowerShell may help.
    https://learn.microsoft.com/en-us/powershell/scripting/samples/performing-networking-tasks?view=powershell-7

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  4. Thameur-BOURBITA 29,686 Reputation points
    2020-09-15T20:20:08.443+00:00

    Hi,

    You can use run the command Get-NetIPAdress remotely on each domain controller to get all ip settings .

    get-netipaddress

    Please don't forget to mark this rely as answer if it help you to fix your issue

    0 comments No comments