CMD: Difference between revisions

From Piszczynski
piszczynski>Aleks
piszczynski>Aleks
Line 1: Line 1:


== Handy CMD commands ==
== Handy CMD commands ==
Check network settings
Check network settings
*ipconfig
*ipconfig
Line 41: Line 42:
Perform IP scan:
Perform IP scan:
*for /l %i in (1,1,254) do @ping 10.170.1.%i -n 1 -w 100 | find "Reply"
*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

Revision as of 11:33, 4 November 2019

Handy CMD commands

Check network settings

  • ipconfig


Check DNS and resolve ip to host

  • nslookup


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