PowerShell management commands

$owners = @{}
gwmi win32_process |% {$owners[$_.handle] = $_.getowner().user}
get-process | sort vm | select processname, Id, @{l="Owner";e={$owners[$_.id.tostring()]}}

While(1) {ps | sort -des cpu | select -f 15 | ft -a; sleep 1; cls}

Get-Process | sort vm | select name, vm -Last 5

Get-WmiObject win32_processor | select LoadPercentage  |fl

Get-Counter '\Memory\Available MBytes'
Get-Counter '\Processor(_Total)\% Processor Time'
Advertisements

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