Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views6 pages

? Windows Commands Related

? Windows Commands related
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views6 pages

? Windows Commands Related

? Windows Commands related
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Windows Commands

1. File and Directory Management


Command Description Example
Lists files and
dir directories in current dir C:\Users
folder
cd
cd Change directory
C:\Windows\System32
mkdir Create a new folder mkdir NewFolder
rmdir Delete a folder rmdir OldFolder
copy Copy files copy file1.txt D:\Backup
xcopy C:\Data D:\Backup
xcopy Copy directories & files
/E
del Delete file del file.txt
move file.txt
move Move file/folder
D:\Documents

2. System Information & Management


Command Description Example
systeminfo Shows system info systeminfo
tasklist Lists running processes tasklist
taskkill /PID 1234
taskkill Kill a process by PID
/F
Opens system information
msinfo32 msinfo32
GUI
shutdown Shutdown/restart computer shutdown /s /t 0

3. Disk and Drive Commands


Command Description Example
chkdsk Check disk for errors chkdsk C: /f
diskpart Disk partition tool diskpart
format Format a drive format D: /FS:NTFS
defrag Disk defragmentation defrag C:

4. User and Account Management


Command Description Example
net user View all net user
users
net user username Add new net user John /add
/add user
net localgroup View local net localgroup
groups
net localgroup Add user to net localgroup
groupname group Administrators John
username /add /add

Networking Commands
1. IP Configuration
Command Description Example
ipconfig View IP address, subnet, ipconfig
gateway
ipconfig /all Detailed IP info ipconfig /all
ipconfig Release DHCP IP ipconfig
/release /release
ipconfig Renew DHCP IP ipconfig
/renew /renew
ipconfig Clear DNS cache ipconfig
/flushdns /flushdns

2. Connectivity & Diagnostics


Command Description Example
ping Test connectivity to host ping google.com
tracert Trace route to host tracert google.com
pathping Trace + packet loss info pathping google.com
nslookup DNS lookup nslookup google.com
arp -a Show ARP table arp -a

3. Network Configuration
Command Description Example
netstat Show active netstat -an
connections
netstat -r Show routing netstat -r
table
route Print routing route print
print table
route add Add route route add 192.168.2.0 mask
255.255.255.0 192.168.1.1
hostname Show system hostname
hostname
4. Wireless & Wi-Fi
Command Description Example
netsh wlan show List Wi-Fi netsh wlan show
profiles profiles profiles
netsh wlan show netsh wlan show
profile Show Wi-Fi profile
name="WiFiName" password name="HomeWiFi"
key=clear key=clear
netsh wlan connect Connect to netsh wlan connect
name="WiFiName" Wi-Fi name="HomeWiFi"

5. Advanced Network Tools


Command Description Example
telnet Connect to a telnet 192.168.1.10
remote host on a 23
port
ftp File Transfer ftp ftp.example.com
Protocol
powershell Test- Test connectivity Test-NetConnection
NetConnection like google.com -Port 80
ping/traceroute
netsh interface ip Show IP config of netsh interface ip
show config interfaces show config

6. Miscellaneous Useful Commands


Command Description Example
getmac Show MAC getmac
addresses
nbtstat -a Show NetBIOS over nbtstat -a PC1
<hostname> TCP/IP info
net config Network config info net config
workstation workstation
net use Map network drives net use Z:
\\Server\Share

https://www.linkedin.com/in/gitesh-d-aa95a8227/

You might also like