Windows Server Administrators Top 200 Question - Appendix B

 

Appendix B — Top 50 CMD Commands for Windows Server Administrators

1. Network Commands — 1 to 15

#CMD CommandPurpose
1ipconfigDisplays basic IP configuration
2ipconfig /allDisplays detailed IP configuration
3ipconfig /releaseReleases the DHCP address
4ipconfig /renewRenews the DHCP address
5ipconfig /flushdnsClears the DNS resolver cache
6ipconfig /displaydnsDisplays cached DNS records
7pingTests network connectivity
8tracertTraces the route to a destination
9pathpingTests route and packet loss
10nslookupQueries DNS
11netstat -anoDisplays connections, ports, and PIDs
12arp -aDisplays the ARP cache
13route printDisplays the routing table
14hostnameDisplays the computer name
15getmacDisplays MAC addresses

2. Domain and Active Directory Commands — 16 to 25

#CMD CommandPurpose
16whoamiDisplays the current user
17whoami /allDisplays user SID, groups, and privileges
18net userLists local users
19net user username /domainDisplays domain user information
20net groupLists domain groups
21net localgroupLists local groups
22netdom query fsmoDisplays FSMO role holders
23nltest /dsgetdc:domain.comLocates a Domain Controller
24nltest /sc_verify:domain.comVerifies the domain secure channel
25dsquery userSearches for AD users

3. Group Policy Commands — 26 to 30

#CMD CommandPurpose
26gpupdate /forceForces a Group Policy refresh
27gpresult /rDisplays applied GPO summary
28gpresult /h report.htmlGenerates an HTML GPO report
29rsop.mscOpens Resultant Set of Policy
30secedit /refreshpolicyLegacy security-policy refresh command

4. System and Service Commands — 31 to 40

#CMD CommandPurpose
31systeminfoDisplays system information
32tasklistLists running processes
33taskkill /PID 1234 /FTerminates a process by PID
34sc queryDisplays service status
35net startLists or starts services
36net stopStops a service
37shutdown /r /t 0Restarts the server
38shutdown /s /t 0Shuts down the server
39sfc /scannowChecks and repairs protected system files
40DISM /Online /Cleanup-Image /RestoreHealthRepairs the Windows component store

5. Disk, File and Troubleshooting Commands — 41 to 50

#CMD CommandPurpose
41diskpartOpens the disk management command-line tool
42chkdskChecks a disk for file-system errors
43dirLists files and folders
44robocopyPerforms advanced file copying
45icaclsDisplays or modifies NTFS permissions
46net shareDisplays or manages shared folders
47net useMaps or manages network connections
48repadmin /replsummaryDisplays AD replication summary
49repadmin /showreplDisplays detailed AD replication status
50dcdiagDiagnoses Domain Controller health

Most important CMD troubleshooting workflow

For a domain login or Active Directory issue, a Windows Server administrator commonly works through commands such as:

ipconfig /all
ping DC01
nslookup corp.local
nltest /dsgetdc:corp.local
nltest /sc_verify:corp.local
gpresult /r
repadmin /replsummary
dcdiag

For a network issue:

ipconfig /all
ping 127.0.0.1
ping <gateway-ip>
ping <remote-server-ip>
nslookup <server-name>
tracert <destination>
pathping <destination>
netstat -ano
route print

For a Group Policy issue:

gpupdate /force
gpresult /r
gpresult /h C:\Temp\GPOReport.html

For an Active Directory replication issue:

repadmin /replsummary
repadmin /showrepl
dcdiag


Comments

Popular posts from this blog

How to install VNX Launcher that has embedded java and Firefox

DHCP FAILED APIPA IS USED

How to Clean VMware vCenter Logs and Fix Storage Full Issues (Step-by-Step Guide)