25 C
Dubai
Tuesday, November 26, 2024

10 Useful Basic commands which make life easy for Troubleshooters

1 . To find User Logged in to which domain ?

Set u

image

Running “Set”

Gives all the basic information

2 . To find user resides in which Active Directory Site ?

nltest /dsgetsite

image

3 . To find which DC is Domain Joined system in binding to ?

nslookup

image

4 . To find how many DC’s the Environment has ?

netdom query dc

image

5 . To find where the FSMO roles are ?

netdom query fsmo

image

6 . To Sync all the available Domain Controllers  to the Current DC  ?

(To be run on DC)

repadmin /sycall /Aped

image

7.  To Find DC connectivity is healthy from the Domain Joined Machine ?

dcdiag /s:”DC FQDN”

image

8. To find the Computer name ?

hostname

image

9. To find which are the ports are listening ?

netstat -an | find /i "listening"

image

10 .  To Find the Statistics of the LAN and the Route Table ?

Netstat -Reports

image

To Replicate DNS

dnscmd ny-dc1 /zonerefresh test.contoso.com

To Move Cluster Group

Cluster Group “Cluster Group”/MOVETO:ServerName

Hope its a Useful Blog to have this Commands Handy in One place

 

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?