Sunteți pe pagina 1din 2

Network troubleshooting commands for Windows

The Windows troubleshooting commands discussed in this document fall into three categories:

Determine which groups a user belongs To generate a list of groups that a user belongs, open a command prompt and enter the following commands: net user <username> /domain Replace <username> with an actual user name. For example: net user jdoe /domain

Helpful commands entered from the Start > Run dialog box Select Start > Run to execute any of the following commands.

mstsc Opens the Remote Desktop (RDP) tool winmsd Opens the System Information dialog box inetcpl.cpil Opens the Internet Explorer Properties dialog box odbccp32.cpl Opens the ODBC Data Source Administrator mmc Opens the Microsoft Management Console (MMC) services.msc Opens the Windows Services dialog box eventvwr.msc Opens the Windows Event Viewer dsa.msc Opens the Active Directory User and Computers management console dssite.msc Opens the Active Directory Sites and Services management console adminpak.msi Launches the Administration Tools Pack installer dxdiag Opens the DirectX Diagnostic Tool \\< Name or IP>\C$ Opens a UNC to the C: share cmd Opens the Windows Command Prompt using the 32-bit cmd shell

Command-line tools for troubleshooting network connectivity This list contains some common commands for troubleshooting network connectivity. Select Start > Runand then type cmd to access the appropriate command prompt. Activating a command window viaStart > Programs > Accessories does not allow all of the following tools to run correctly.

arp -a gpresult ipconfig /all ipconfig /flushdns nbtstat -a <MachineName> nbtstst -A <IP> nbtstat -R nbtstat -n nbtstat -r netstat -ab netstat -an netstat -an 1 | find "15868" netstat -an | find "LISTENING" net use net use file://1.2.3.4/ net user net user /domain net user /domain <UserName> net group /domain net view net view /domain net view /domain: <DomainName> | more net view /cache

Shows gateway MAC address. Starts the Operating System Group Policy Result tool Displays the full TCP/IP configuration for all adapters Flushes the DNS resolver cache. Helpful when troubleshooting DNS name resolution problems Obtains info from WINS or LMHOST (discovers who is logged on) Gets info from WINS or LMHOST (discovers who is logged on) Purges and reloads the remote cache name table Lists local NetBIOS names. Useful for detecting errors when browsing WINS or NetBIOS The b switch links each used port with its application Shows open ports Locates only lines with the number 15868 and redisplays every one second Shows open ports with LISTENING status Retrieves a list of network connections Sees if the machine can poll IP 1.2.3.4 Shows user account for the computer Displays user accounts for the domain Shows account details for specific user Shows group accounts for the domain Displays domains in the network Specifies computers available in a specific domain

Shows user accounts from specific domain Shows workstation names Looks up IP/hostnames and displays information helpful in nslookup diagnosing DNS issues ping -a <IP> Resolves IP to Hostname ping -t <IP> Pings host until stopped set U Shows which user is logged on set L Shows the logon server telnet <IP> <port> Confirms whether the port is open net use %LOGONSERVER%

S-ar putea să vă placă și