Windows Command Cheat Sheet for Network Engineers
Windows Command Cheat Sheet for Network Engineers
Basic Networking Commands
- Check IP configuration:
ipconfig
- Release IP address:
ipconfig /release
- Renew IP address:
ipconfig /renew
- Display current TCP/IP connections:
netstat -a
- Show routing table:
route print
Network Diagnostics
- Ping a host:
ping
- Trace the route to a host:
tracert
- Check DNS resolution:
nslookup
- Check network statistics:
netstat -s
Network Share and File Commands
- List shared folders:
net share
- Map a network drive:
net use : \\\
- Disconnect a network drive:
net use : /delete
Firewall Configuration
- Check firewall status:
netsh advfirewall show allprofiles
- Allow a program through the firewall:
netsh advfirewall firewall add rule name="" dir=in action=allow program=""
- Block a program:
netsh advfirewall firewall add rule name="" dir=in action=block program=""
Wi-Fi Commands
- Show Wi-Fi profiles:
netsh wlan show profiles
- Connect to a Wi-Fi network:
netsh wlan connect name=""
- Disconnect from a Wi-Fi network:
netsh wlan disconnect
Network Adapter Management
- Show network adapters:
getmac
- Disable a network adapter:
netsh interface set interface "" admin=disabled
- Enable a network adapter:
netsh interface set interface "" admin=enabled
Viewing and Managing Services
- List all services:
services.msc
- Start a service:
net start
- Stop a service:
net stop
PowerShell Networking Commands
- Check IP configuration:
Get-NetIPConfiguration
- Get DNS settings:
Get-DnsClientServerAddress
- Get active network connections:
Get-NetTCPConnection
Remote Connection
- Remote Desktop connection:
mstsc /v:
- Establish a remote PowerShell session:
Enter-PSSession -ComputerName
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.