다음을 통해 공유


NETDOM Commands

NETDOM Commands to query FSMO role holders.

1. How to query FSMO role holders for a forest ?

> netdom query fsmo
(query results all FSMO role holders PDC\IM\RID\Schema\Domain Naming Master)

2. How to query FSMO for particular domain ?

> netdom query /domain:test.com fsmo

3. How to create and add a Computer account to a specific OU ?

> netdom add /d:test.com test1 /OU:OU=Workstations,OU=Computers,DC=Test,DC=com

4. How to remove a machine\server from the domain ?

> netdom remove /d:test.com test1 /ud:test\administrator /pd:password
> netdom remove /d:test.com test1 /ud:test\administrator (provide the Admin account name and domain name) /pd:password ( password for the Admin account)

5. How to reset the secure channel for machine\server ?

> netdom reset /d:test.com test1
> netdom reset /d:test.com test1 (provide the computer account name)

6. How to verify the secure channel for a workstatin or server ?

> netdom verify /d:test.com test1
> netdom verify /d:test.com test1 (provide the computer account name)