Wednesday, December 28, 2011

Active Directory Management

Find FSMO Roles
netdom query /domain:domain-name fsmo

===================================

To resolve Time Sync ISSUE on server, this will sync your machine time with PDC.

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /config /syncfromflags:DOMHIER /update
w32tm /resync
w32tm /query /status

===========================================
Test replication summary for enterprise

repadmin /replsummary > c:/replsummary.txt
repadmin /showrepl * /csv > c:\repl.csv

====================================================

Check complete summary of replication.

cd \
cd "program files\support tools"
del c:\dcdiag.log
dcdiag /e /c /v /s:DC01 /f:c:\dcdiag.log
start c:\dcdiag.log
netdiag.exe /v > c:\netdiag.log
start c:\netdiag.log
repadmin.exe /showrepl dc* /verbose /all /intersite > c:\repl.txt
start c:\repl.txt

=====================================================================


To find DC Time:
w32tm /monitor

================================================

For instant replication for forestDNSZones.

repadmin /replicate dc01 DC02 DC=ForestDnsZones,DC=domain,DC=net,DC=pk /force