piszczynski>Aleks |
piszczynski>Aleks |
||
Line 9: | Line 9: | ||
*nslookup | *nslookup | ||
View uptime and network adapter stats | |||
*net stats server (for server) | |||
*net stats workstation (for regular PC) | |||
View network resources | View network resources |
Revision as of 15:44, 13 November 2019
Handy CMD commands
Check network settings
- ipconfig
Check DNS and resolve ip to host
- nslookup
View uptime and network adapter stats
- net stats server (for server)
- net stats workstation (for regular PC)
View network resources
- net view
List Tasks:
- tasklist
Stop process
- taskkill /im "name of program"
- taskkill /f /in "name" - to force close
- taskkill /pid "id number off process"
- taskkill /s "other computer name" /im "name of program"
- taskkill /f /fi "status eq not responding" - kill all not responding processes using filter "/fi" and force "/f"
Log people off servers
- qwinsta /server:Servername
- logoff /server:Servername id
Open control panel items
- control /name microsoft.<controlpanelitem>
- eg "control /name microsoft.credentialmanager"
Change prompt text
- prompt
Perform IP scan:
- for /l %i in (1,1,254) do @ping 10.170.1.%i -n 1 -w 100 | find "Reply"
Change CMD launch settings
Change Autorun reg key: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor