Přejmenování Windows 2008 R2 ActiveDirectory serveru

Posted by on Úno 6, 2012

Čas od času je potřeba přejmenovat ActiveDirectory server. Ať už je důvodem výměna hardware nebo třeba změna pravidel pojmenovávání serverů, tady je postup. Pro tuto proceduru použijeme příkaz utititky „netdom“. Na příkladu si ukážeme jak přejmenovat AD server AD05 v doméně domain.local na AD10.

  1. Otevřít příkazový řádek jako administrátor a použít příkazC:\Windows\system32>netdom computername ad05.domain.local /add:ad10.domain.local
    Successfully added ad10.domain.local
    as an alternate name for the computer.

    The command completed successfully.

    Ověření správného průběhu tohoto příkazu lze provést nahlédnutím do parametru „msDS-AdditionalDnsHostName“ pomocí ADSI Editu. Tato hodnota by měla obsahovat nové jméno serveru (AD10.domain.local).

  2. Nastavíme primární jméno serveruC:\Windows\system32>netdom computername ad05.domain.local /makeprimary:ad10.domain.local
    Successfully made ad10.domain.local
    the primary name for the computer. The computer must be rebooted for this name
    change to take effect. Until then this computer may not be able to authenticate
    users and other computers, and may not be authenticated by other computers in
    the forest. The specified new name was removed from the list of alternate
    computer names. The primary computer name will be set to the specified new
    name after the reboot.

    The command completed successfully.

    Ověření správného průběhu tohoto příkaze lze provést nahlédnutím do parametru „msDS-AdditionalDnsHostName“ pomocí ADSI Editu. Tato hodnota by měla obsahovat staré jméno serveru (AD05.domain.local).

  3. Restart serveru
  4. Odstranění starého jména serveruC:\Windows\system32>netdom computername ad10.domain.local /remove:ad05.domain.local
    Successfully removed ad05.domain.local
    as an alternamte name for the computer.

    The command completed successfully.

Leave a Reply