0% found this document useful (0 votes)
31 views1 page

AD Commands

This document provides commands to run diagnostics and capture system state before patching a domain controller. It recommends running dcdiag, netdiag, netsh dhcp show server, repadmin /showreps, and repadmin /replsum /errorsonly commands to check the domain controller services, networking, DHCP configuration, and replication status, capturing the outputs to text files for later comparison to ensure the patch was successfully installed.

Uploaded by

Raghesh Lal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views1 page

AD Commands

This document provides commands to run diagnostics and capture system state before patching a domain controller. It recommends running dcdiag, netdiag, netsh dhcp show server, repadmin /showreps, and repadmin /replsum /errorsonly commands to check the domain controller services, networking, DHCP configuration, and replication status, capturing the outputs to text files for later comparison to ensure the patch was successfully installed.

Uploaded by

Raghesh Lal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Dcdiag.exe /v >> c:\temp\pre_dcdiag.

txt

This is a must and will always tell you if there is trouble with your DCs and/or services associated with it

Netdiag.exe /v >> c:\temp\pre_Netdiag.txt


This will let me know if there are issues with the networking components on the DC. This along with the post test also is a quick easy way to ensure the patch I just installed is really installed (just check the top of the log)

Netsh dhcp show server >> c:\temp\pre_dhcp.txt


Some may not do this but I've felt the pain of a DHCP server somehow not being authorized after a patch. This allows me verify the server count and names.

Repadmin /showreps >> c:\temp\pre_rep_partners.txt


This shows all my replication and if it was successful or not. Just be aware that Global Catalogs will have more info here than a normal domain controller.

repadmin /replsum /errorsonly >> c:\temp\pre_repadmin_err.txt


This is the one that always takes forever but will let you know who you are having issues replicating with.

You might also like