Archive for the ‘Batch script’ Category

Get current logged in user name command line (CMD)

Monday, January 3rd, 2022
whoami

Example:

c:\>whoami
cmdline\administrator

 

Multiple IP on a single network interface script

Wednesday, February 3rd, 2010

netsh
interface ip
add address name=”LAN” addr=10.10.10.1  mask=255.255.255.0
add address name=”LAN” addr=10.10.10.2  mask=255.255.255.0
add address name=”LAN” addr=10.10.10.3  mask=255.255.255.0