Summer Webinar Series 2016 Basic Networking U li es II

advertisement
Summer Webinar Series 2016 Basic Networking U:li:es II MCNC K-12
https://www.mcnc.org/our-community/k12
Kevin Moderow
kmoderow@mcnc.org
Quick Review Basic Networking U:li:es Part I (2015) ●  ipconfig
●  pathping
●  nbtstat
●  ping
●  nslookup
●  route
●  tracert
●  netstat
●  netsh
Basic Networking U:li:es Part II (2016) net
netsh
•  stop/start
•  interface
•  use
•  wlan
Why use the command line? ●  Quick
●  Easy
●  No Special Software
●  Cross Platform
●  Usually No Elevated
Privileges Needed
Kevin Moderow
kmoderow@mcnc.org
cmd.exe ●  Opens command
prompt window
●  Creating a shortcut to
cmd.exe allows user to
run as Administrator
Kevin Moderow
kmoderow@mcnc.org
net: Stop and Start Services Use: net start to list all services
“who goes by the name...?” e.g. net stop “DHCP client” followed by net start “DHCP client” will renew DHCP address
::Clear Printer Problems
::Stop the spooler service
net stop spooler
::Clear the print spooler folders
del /q %windir%\System32\spool\PRINTERS\*
::Restart the spooler service
net start spooler
::Make sure everything worked
pause
::Save all text from this box to a file called ClearPrints.cmd and leave it on the user’s desktop
Kevin Moderow, kmoderow@mcnc.org
net use: Map Network Drive “who goes by the name...?” Use: net use to list all mapped drives
Map a Drive: net use X: \\SomeServer\SharedFolder
Kevin Moderow, kmoderow@mcnc.org
netsh: Find IP Address netsh interface ip show config | findstr "IP Address" | findstr -V 127
“who goes by the name...?” 1.  Start by displaying all IP configuration data: netsh interface ip show config
2.  Filter the output to show only IP addresses: findstr “IP Address”
3.  Exclude the loopback address: findstr –V 127
Kevin Moderow, kmoderow@mcnc.org
netsh: Switch to DHCP Client netsh interface“who ip set address
Area Connection" dhcp
goes by "Local
the name...?” 1.  Interface name should be in quotes. Use ipconfig to identify name.
2.  You’ll want to set DNS to DHCP as well:
netsh interface ip set dns "Local Area Connection" dhcp
3.  Optionally change WINS settings to DHCP as well:
netsh interface ip set wins "Local Area Connection" dhcp
4.  Mac OS X: networksetup -setdhcp Wi-Fi
Kevin Moderow, kmoderow@mcnc.org
netsh: Which Access Point? netsh wlan show interfaces | findstr BSSID
“who goes by the name...?” 1.  Start by displaying all WLAN interfaces data: netsh wlan show interfaces
2.  Filter the output to show only current BSSID: findstr BSSID
3.  Optionally filter the output to show channel in use: findstr Channel
4.  Mac OS X: airport –I | grep –v “BSSID”
Kevin Moderow, kmoderow@mcnc.org
netsh: Transfer WiFi Profile netsh wlan export profile YourSSID folder=c:\Temp
“who goes by the name...?” 1.  Use the netsh export command: netsh wlan export profile StaffWireless
2.  Designate a specific folder to for the XML file: folder = %UserProfile%\Desktop
3.  Optionally use add profile commands to import to another PC:
netsh wlan add profile filename=“\\FileServer\sharedfolder\StaffWireless.xml”
Kevin Moderow, kmoderow@mcnc.org
Summer Webinar Series 2016 Basic Networking U:li:es II MCNC K-12
https://www.mcnc.org/our-community/k12
Kevin Moderow
kmoderow@mcnc.org
Download