How To NtdsUtil

C:\Windows\system32>hostname
dcserver01

C:\Windows\system32>ntdsutil
ntdsutil: m c
metadata cleanup: co
server connections: connect to server localhost
Binding to localhost ...
Connected to localhost using credentials of locally logged on user.
server connections: q
metadata cleanup: s o t
select operation target: list domains
Found 1 domain(s)
0 - DC=demodomain,DC=theatomheart,DC=net
select operation target: select domain 0
No current site
Domain - DC=demodomain,DC=theatomheart,DC=net
No current server
No current Naming Context
select operation target: list sites
Found 6 site(s)
[site details listed]
select operation target: select site 0
Site - [site details]
Domain - DC=demodomain,DC=theatomheart,DC=net
No current server
No current Naming context
select operation target: list server in site
Found 5 server(s)
[server details listed]
select operation target: select server 1
Site - [site details]
Domain - DC=demodomain,DC=theatomheart,DC=net
Server - [server details]
DSA object - [details]
DNS host name - server.demodomain.theatomheart.net
Computer object - [details]
No current Naming Context
select operation target: q
metadata cleanup: remove selected server
Transferring / Seizing FSMO roles off the selected server.
Removing FRS metadata for the selected server.
Searching for FRS members under [details]

Removing FRS member [...(SYSVOL share),CN=File Replication Service,...]
Deleting subtree under [...(SYSVOL share),CN=File Replication Service,...]
Deleting subtree under [server details]
The attempt to remove the FRS settings on [server details] failed because "Element not found.";
metadata cleanup is continuing.
[server details] removed from server "localhost"
metadata cleanup: q
ntdsutil: q

C:\Windows\system32>netdom query dc
List of domain controllers with accounts in the domain:

[servers listed]
The command completed successfully.

C:\Windows\system32>ntdsutil
ntdsutil: m c
metadata cleanup: co
server connections: connect to server localhost
Binding to localhost ...
Connected to localhost using credentials of locally logged in user.
server connections: q
metadata cleanup: s o t
select operation target: list domain
Found 1 domain(s)
0 - DC=demodomain,DC=theatomheart,DC=net
select operation target: select domain 0
No current site
Domain - DC=demodomain,DC=theatomheart,DC=net
No current server
No current Naming Context
select operation target: list sites
Found 6 site(s)
[site details listed]
select operation target: select site 0
[site details listed]
Domain - DC=demodomain,DC=theatomheart,DC=net
No current server
No current Naming Context
select operation target: list servers in site
Found 4 server(s)
[server details listed]
select operation target: select server 1
Site - [site details]
Domain - DC=demodomain,DC=theatomheart,DC=net
Server - [server details]
DSA object - [details]
DNS host name - server.demodomain.theatomheart.net
Computer object - [details]
No current Naming Context
select operation target: q
metadata cleanup: remove selected server
Transferring / Seizing FSMO roles off the selected server.
Removing FRS metadata for the selected server.
Searching for FRS members under [details]

Removing FRS member [...(SYSVOL share),CN=File Replication Service,...]
Deleting subtree under [...(SYSVOL share),CN=File Replication Service,...]
Deleting subtree under [server details]
The attempt to remove the FRS settings on [server details] failed because "Element not found.";
metadata cleanup is continuing.
[server details] removed from server "localhost"
metadata cleanup: q
ntdsutil: q

C:\Windows\system32>netdom query dc
List of domain controllers with accounts in the domain:

[servers listed]
The command completed successfully.

C:\Windows\system32>repadmin /syncall
CALLBACK MESSAGE: The following replication is in progress:
	From: [details]
	To: [details]
CALLBACK MESSAGE: The following replication completed successfully:
	From: [details]
	To: [details]
CALLBACK MESSAGE: SyncAll Finished.
SyncAll terminated with no errors.

C:\Windows\system32>repadmin /syncall /AdePq
Syncing all NC's held on [server]
Syncing partition: DC=ForestDnsZones,DC=demodomain,DC=theatomheart,DC=net
SyncAll terminated with no errors.

Syncing partition: DC=DomainDnsZones,DC=demodomain,DC=theatomheart,DC=net
SyncAll terminated with no errors.

Syncing partition: CN=Schema,CN=Configuration,DC=demodomain,DC=theatomheart,DC=net
SyncAll terminated with no errors.

Syncing partition: CN=Configuration,DC=demodomain,DC=theatomheart,DC=net
SyncAll terminated with no errors.

Syncing partition: DC=demodomain,DC=theatomheart,DC=net
SyncAll terminated with no errors.

C:\Windows\system32>repadmin /kcc

Repadmin: running command /kcc against full DC localhost
[Site name]
Current Site Options: (none)
Consistency check on localhost successful.

C:\Windows\system32>repadmin /syncall /AdePq *
DsBindWithCred to * failed with status 1722 (0x6ba)
	The RPC server is unavailable.

C:\Windows\system32>repadmin /kcc *

Repadmin: running command /kcc against full DC server.demodomain.theatomheart.net
[Site name]
Current Site Options: (none)
Consistency check on localhost successful.

Repadmin: running command /kcc against full DC server.demodomain.theatomheart.net
[Site name]
Current Site Options: (none)
Consistency check on localhost successful.

Repadmin: running command /kcc against full DC server.demodomain.theatomheart.net
[Site name]
Current Site Options: (none)
Consistency check on localhost successful.

Repadmin: running command /kcc against read-only DC server.demodomain.theatomheart.net
[Site name]
Current Site Options: (none)
Consistency check on localhost successful.