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

http://www.microsoft.com/download/en/details.aspx?displaylang=en&=tm&id=2632

once you download it right click on it, do properties and unblock.

Advertisements
  1. I always found the tree command interesting, and I am sure PowerShell could turn it some very interesting data.

  2. 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}

    }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: