3 years ago my primary usage of the command line was on Linux web servers. occasionally I would need DOS prompt access for doing mysql maintenance on my Windows machine, but the Windows Run box was mainly used for regedit.
I use Run a bit more now, but I find myself using the same commands most of the time. Windows experts out there will probably know most of these already, but it is worth listing them anyway.
The one I use most often is “runas.” The story behind hunting for this is posted here, so I won’t bother with the long story. I use runas mainly in our domain to access content on other machines, run programs as admin, and use the Control Panel as admin. It sure beats logging out and in and then out and back in.
runas /user:domain\username “explorer /separate”
Once you hit enter a black box will ask for your password. If your command and user info is correct then Windows Explorer will pop up with that user’s full privileges. From Windows Explorer you can make it into Internet Explorer or evenmake any settings changes you want.
I use remote desktop a lot. I use it to reach systems from home (usually through a VPN or computer hopping) and to run some security camera boxes that I have not physically touched in months. I usually reboot them once a month as part of the update, file cleanup, and maintenance I do on them. Since I don’t touch them I rely on reboot.
shutdown -r /t 1 (”r” for reboot, the “t” for setting the delay time, and “1″ because I am impatient
shutdown -s (”s” is for shutdown and I just use the default 30 sec countdown in case I change my mind
shutdown -a (”a” is for abort when I realize I didn’t mean to shutdown)
shutdown -i (”i” is for interactive GUI. This makes shutting down other people’s computers easier. Remember the fine line between having fun and getting your nose punched.)
mstsc
The Microsoft Terminal Service Client is typically located at Start > Programs > Accessories > Communications > Remote Desktop Connection. I typically give it the shortcut [ctrl]-[alt]-r but I have been on computers where the shortcut is lost. All I need to remember is the mstsc.
What Run commands do you use?
There is a bunch here: 156 Useful Run Commands, but many are just typing the exe filename of the application. I am interested in stuff that is more clever than that.
Comments
A Church Ombudsman
A Church Ombudsman
DCS-5300 Pan / Tilt / Digital Zoom Network Camera
DCS-5300 Pan / Tilt / Digital Zoom Network Camera
Follow-Up On Yesterday’s Dreamhost Post