Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the ntdsutil command on the cmd command line

Shulou Source: shulou.com Published: 2022-06-01 06:24:15 10月27日 Update

Editor to share with you how to use the ntdsutil command in the cmd command line, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

System environment

System: Windows Server 2012 R2 Std

Domain name: example.com

There are two systems in the environment. DC and DC2, this article transfers the five major roles in DC to DC2.

Using the ntdsutil command on the cmd command line

First, check which server the five roles are on:

> netdom query fsmo

When the primary domain control and secondary domain control are running normally, use Transfer:

> ntdsutil ntdsutil: roles fsmo maintenance: connections server connections: connect to server DC2 / / Connect to the secondary domain controller server connections: Q / / quit to up level and return to the upper level fsmo maintence: transfer naming master fsmo maintence: transfer PDC fsmo maintence: transfer RID master fsmo maintence: transfer schema master fsmo maintence: transfer infrastructure master

The next four roles also select Yes to confirm the transfer.

After the transfer is complete, use netdom to take a look at the servers where the five roles are located.

> netdom query fsmo

Tips:

If the master domain controls the Down. Seize five roles in the secondary domain controller, using the same command above to transfer, except that the Transfer command is replaced with Seize.

Using the Move-ADDirectoryServerOperationMasterRole command in PS

To transfer five roles to another domain controller, run the following command. Where-Identity specifies the secondary domain controller and-OperationMasterRole specifies the roles to be transferred. -force is enforced, and when the primary domain controller Down is off, the-force option comes in handy in the secondary domain controller.

> Move-ADDirectoryServerOperationMasterRole-Identity DC2-OperationMasterRole 0, 1, 1, 2, 3, 4-force

By executing the ntdsutil command, you can see that five roles have been transferred to DC2.

The following is a detailed list of the five FSMO roles corresponding to the 0meme 1meme 2meme 3pr 4 five serial numbers.

PDC Emulator-0

RID Master-1

Infrastructure Master-2

Schema Master-3

Domain Naming Master-4

The above is all the contents of the article "how to use ntdsutil commands on the cmd command line". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Command role controller control auxiliary article system content server environment service run not much just domain name most serial number location time more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi MySQL Huawei Shulou Technology