meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| windows:commandline:start [2026/06/09 13:31] – created titannet | windows:commandline:start [2026/06/11 15:41] (current) – titannet | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Process Information ===== | ===== Process Information ===== | ||
| - | List all processes currently running: | + | ^ ^^ ^ |
| - | C: | + | | '' |
| - | List all processes currently running and the DLLs | + | | '' |
| - | each has loaded: | + | | '' |
| - | C: | + | | '' |
| - | Lists all processes currently running which have the | + | | '' |
| - | specified [dll] loaded: | + | | '' |
| - | C: | + | | '' |
| - | List all processes currently running and the services | + | |
| - | hosted in those processes: | + | ===== File handling ===== |
| - | C:\> tasklist /svc | + | |
| - | Query brief status of all services: | + | ^ ^^ ^ |
| - | C: | + | | '' |
| - | Query the configuration of a specific service: | + | | '' |
| - | C:\> sc qc [ServiceName] | + | | '' |
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | || | | ||
| ===== File search ===== | ===== File search ===== | ||
| - | Search directory structure for a file in a specific | + | ^ ^^ ^ |
| - | directory: | + | | '' |
| - | C: | + | | '' |
| - | Count the number of lines on StandardOuy of | + | | '' |
| - | [Command]: | + | | '' |
| - | C:\> [Command] | find /c /v "" | + | | || | |
| - | Finds the count (/c) of lines that do not contain (/v) | + | |
| - | nothing ("" | + | |
| - | lines, even blank lines, which contain CR/LF | + | |
| + | ===== Loops ===== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | || | | ||
| + | |||
| + | ===== System Info ===== | ||
| + | < | ||
| + | DATE Outputs or sets the current date DATE | ||
| + | TIME Displays or sets the system time TIME | ||
| + | DRIVERQUERY Displays the current state and properties of device drivers DRIVERQUERY | ||
| + | HOSTNAME Displays the name of the computer HOSTNAME | ||
| + | SYSTEMINFO Shows configuration information about your computer SYSTEMINFO | ||
| + | VER Displays the Windows version VER | ||
| + | GPRESULT Displays the currently applied group policies (RSoP) GPRESULT /R | ||
| + | GPUPDATE Updates group policies GPUPDATE /FORCE | ||
| + | </ | ||
| ===== Tools ===== | ===== Tools ===== | ||
| - | ==== Netstat | + | ==== Network |
| - | Useful Netstat Syntax | + | ^ ^^ ^ |
| - | Show all TCP and UDP port usage and process ID: | + | | '' |
| - | C: | + | | '' |
| - | Look for usage of port [port] every [N] seconds: | + | | '' |
| - | C:\> netstat –nao [N] | find [port] | + | | || | |
| - | Dump detailed protocol statistics: | + | |
| - | C: | + | |
| + | |||
| + | < | ||
| + | PCONFIG Shows information about network interfaces and IP configuration IPCONFIG /ALL | ||
| + | PING Sends ICMP requests to the target host to check its availability PING google.com | ||
| + | TRACERT Finds the network path for packets traveling to a destination TRACERT google.com | ||
| + | NSLOOKUP Finds the IP address for a resource name NSLOOKUP google.com | ||
| + | ROUTE Displays network route tables ROUTE PRINT | ||
| + | ARP Displays a table mapping IP addresses to physical (MAC) addresses ARP -A | ||
| + | NETSH Starts the network settings control program NETSH INTERFACE IP SHOW CONFIG | ||
| + | |||
| + | </ | ||
| ==== Reg ==== | ==== Reg ==== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| reg add | reg add | ||
| Line 63: | Line 112: | ||
| ==== wmic ==== | ==== wmic ==== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| wmic [alias] [where clause] [verb | wmic [alias] [where clause] [verb | ||
| Line 99: | Line 160: | ||
| / | / | ||
| list full | list full | ||
| + | |||
| + | ==== Netsh ==== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | |||
| + | Interacting with the Network Using Netsh | ||
| + | Turn off built-in Windows firewall: | ||
| + | C:\> netsh firewall set opmode disable | ||
| + | Configure interface “Local Area Connection” with | ||
| + | [IPaddr] [Netmask] [DefaultGW]: | ||
| + | C:\> netsh interface ip set address | ||
| + | local static [IPaddr] [Netmask] | ||
| + | [DefaultGW] 1 | ||
| + | Configure DNS server for “Local Area Connection”: | ||
| + | C:\> netsh interface ip set dns local | ||
| + | static [IPaddr] | ||
| + | Configure interface to use DHCP: | ||
| + | C:\> netsh interface ip set address | ||
| + | local dhcp | ||
| + | |||
| + | |||
| + | ==== Administration ==== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | | || | | ||
| + | | || | | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== GUI ==== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | |||
| + | Invoking Useful GUIs at the Command Line | ||
| + | Local User Manager (includes group management): | ||
| + | C:\> lusrmgr.msc | ||
| + | Services Control Panel: | ||
| + | C:\> services.msc | ||
| + | Task Manager: | ||
| + | C:\> taskmgr.exe | ||
| + | Security Policy Manager: | ||
| + | C:\> secpol.msc | ||
| + | Event Viewer: | ||
| + | C:\> eventvwr.msc | ||
| + | Control Panel: | ||
| + | C:\> control | ||
| + | |||
| + | |||
| + | ==== Template ==== | ||
| + | |||
| + | |||
| + | ^ ^^ ^ | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | | || | | ||
| + | |||
| + | |||