Windows Command List
List of random windows commands i’ve come across that have been useful. hopefully powershell will replace all of them! If you know of any cool ones please share them.
- Query – allows you to query info on Process/session/termserver/user
- Qwinsta/Rwinsta -Query/Remove RDP session
- Schtasks – Manage scheduled tasks
A full list can be downloaded from Microsoft
once you download it right click on it, do properties and unblock.

I always found the tree command interesting, and I am sure PowerShell could turn it some very interesting data.
That actually came up the other day in the forums
http://social.Technet.microsoft.com/Forums/en-US/winserverpowershell/thread/fac81450-a43e-443a-b795-4d87cb7e5f88#aceef1f4-622d-48aa-b7ce-66604940fc21
Voodoomsr has a good way to do this with objects, which could easily be converted to do it with a GCI
function ExploreRec{
param([int]$lvl, $object, $pref)
if($lvl -eq 0){return}
$lvl–;
$pref+=”`t”
if($object -isnot [System.Type]){
$object = $object.gettype()
}
$object.getproperties()| % { $pref+$_.Name; ExploreRec $lvl $_.PropertyType $pref}
}