meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| windows:commandline:start [2026/06/11 12:54] – titannet | windows:commandline:start [2026/06/11 15:41] (current) – titannet | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ^ ^^ ^ | ^ ^^ ^ | ||
| - | | tasklist || List all processes currently running | | + | | '' |
| - | | tasklist /m || List all processes currently running and the DLLs each has loaded | | + | | '' |
| - | | tasklist /m [dll] || Lists all processes currently running which have the specified [dll] loaded | | + | | '' |
| - | | tasklist /svc || List all processes currently running and the services hosted in those processes | | + | | '' |
| - | | sc query || Query brief status of all services | | + | | '' |
| - | | sc qc [ServiceName] || Query the configuration of a specific service | | + | | '' |
| + | | '' | ||
| ===== File handling ===== | ===== File handling ===== | ||
| + | ^ ^^ ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | || | | ||
| Line 20: | Line 31: | ||
| ^ ^^ ^ | ^ ^^ ^ | ||
| - | | dir /b /s [Directory]\[FileName] || Search directory structure for a file in a specific directory | | + | | '' |
| - | | [Command] %%|%% find < | + | | '' |
| - | | [Command] %%|%% find /c < | + | | '' |
| - | | find /c /v "" | + | | '' |
| | || | | | || | | ||
| Line 31: | Line 42: | ||
| ^ ^^ ^ | ^ ^^ ^ | ||
| - | | || | | + | | '' |
| - | | || | | + | | '' |
| - | | || | | + | |
| - | | || | | + | |
| - | | || | | + | |
| - | | || | | + | |
| - | | || | | + | |
| - | | || | | + | |
| - | | || | + | |
| | || | | | || | | ||
| - | Counting Loop: | + | ===== System Info ===== |
| - | C:\> for /L %i in | + | |
| - | ([start], | + | |
| - | Iterate over file line by line: | ||
| - | C:\> for /F %i in ([file-set]) do | ||
| - | [command] | ||
| + | < | ||
| + | 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:\> netstat –nao | ||
| - | Look for usage of port [port] every [N] seconds: | ||
| - | C:\> netstat –nao [N] | find [port] | ||
| - | Dump detailed protocol statistics: | ||
| - | C:\> netstat –s –p [tcp|udp|ip|icmp] | ||
| + | < | ||
| + | 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 ==== | ||
| Line 183: | Line 189: | ||
| C:\> netsh interface ip set address | C:\> netsh interface ip set address | ||
| local dhcp | local dhcp | ||
| + | |||
| + | |||
| + | ==== Administration ==== | ||
| + | |||
| + | ^ ^^ ^ | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | | || | | ||
| + | | || | | ||
| + | |||
| + | |||