Most common Windows CMD commands

I spend a lot of time with the chkdsk utility and diskpart, as well as ping, nslookup, tracert and some command-line options on Windows XP's install disc. I also used to run a headless, command-line install of Server 2008 at my old workplace as well as a headless CentOS server. Linux still befuddles me at times, but I know my way around at least.
 
ipconfig
nslookup
ping
rasdial (+ Task Scheduler, works great for connecting/disconnect my 6to6 uncapped account)
 
ping (Use most at work)
ipconfig /release /flushdns /renew
attrib e:\*.* -h -r -s /d /s (Virus that hides all folders on external / flash drive and can't remove hidden attribute through windows)
cls
cd
dir >lpt1 (To test them cr@ppy dot matrix printers)

That's my most used.
 
dir
cd
ping
ipconfig
ftp
exit

Then, sometimes when I work on a server where I'm not allowed to install software like Winrar, I copy the rar.exe file over and use that to compress a file for transfer over vpn.
 
tracert <host>
ping <host>
route print -4
grep < part of UnxUtils
shutdown -r -f -t 0

Once you've used Linux shell, you cannot go back :D
 
ping (Use most at work)

attrib e:\*.* -h -r -s /d /s (Virus that hides all folders on external / flash drive and can't remove hidden attribute through windows)

I also use it alot. Norton does not pick up the trojan at work so my drive is always infected. clear it up at home.
Only I use attrib -h -r -s /s /d e:\*.*
 
If you do that more than 3 times and its not a script, then you are a bad admin. :D

I type that in my above batch file, link to shortcut on desktop as "Fix Printer!" (with stop and start service pre and post)
Printing flash stuff on old printers too often borks around. :)
 
Top
Sign up to the MyBroadband newsletter
X