User Tools

Site Tools


mswindows

This is an old revision of the document!


All Windows cli commands

List system configuration

SYSTEMINFO

Useful to:

  • find uptime (systeminfo | findstr “Boot Time”


hostname


To RENEWthe mac address (useful after changing vlan):

ipconfig /release
ipconfig /renew

MAPPED DRIVES
To list them:

net use

To assign the disk-drive device name E: to the Letters shared directory on the \\Financial server, type:

net use e: \\financial\lette

View the IP routing table

route print

TOOLS
Tftp server and client:[[http://tftpd32.jounin.net/|Tftpd32 by Ph. Jounin]


SCRIPTS AND BATCH FILES IN WINDOWS For environmental variables:

Computer > Right click > Properties > Advanced system Settings > Environmental variables
  • 'At' symbol (@)at the beginning is to disable io output.
  • '%' at the end is for the script to take arguments


NETSTAT WITH PROCESS NAME (REQUIRES ADMIN RIGHTS)

netstat -abno


NETSTAT AND SYN-SENT
The command will check every second and print the results:

netstat -ano | findstr -i SYN_SENT

Running continuously (every 2 seconds):

netstat -ano 2 | findstr 10.8.197.153


NOTEPAD++ - NPP

  • To remove marking after comparing files: Ctrl-Alt-D OR Plugins > Compare > Clear results
  • To show/hide CR/LF : View > Show Symbol > Show all characters
mswindows.1470646044.txt.gz · Last modified: (external edit)