Working smarter, not harder

New-to-me Windows DOS commands that are equivalent to bash commands that I always use. Another in a long series.

runas [1]
Equivalent to sudo, allows one to run commands as a different user assuming one knows the password for that user
pushd [2]
Maps a network location as a volume
popd [3]
Drops that mapping

Use them in combination and you’ve got remote filesystem mapping from the CLI amongst other ways of doing work on remote machines without having to actually remote out to them. I’ve learned three things today. Can I take the rest of the week off?

[1] http://technet.microsoft.com/en-us/library/bb490994.aspx
[2] http://technet.microsoft.com/en-us/library/bb490978.aspx
[3] http://technet.microsoft.com/en-us/library/bb490969.aspx

2 thoughts on “Working smarter, not harder

  1. Equivalent may have been a little bit of a stretch, but it certainly is playing the same game in the same ballpark. Especially runas /user:barfoo cmd which gives you a one-stop shop for pwning foo.

    And, yeah, how long have I been in corporate winhell and didn’t know this?

Comments are closed.