{"id":11,"date":"2006-12-12T04:00:00","date_gmt":"2006-12-12T12:00:00","guid":{"rendered":"http:\/\/testblog.sapien.com\/index.php\/2006\/12\/12\/power-your-shell-with-powergadgets\/"},"modified":"2006-12-12T04:00:00","modified_gmt":"2006-12-12T12:00:00","slug":"power-your-shell-with-powergadgets","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2006\/12\/12\/power-your-shell-with-powergadgets\/","title":{"rendered":"Power your Shell with PowerGadgets"},"content":{"rendered":"<p>&nbsp;By now you&#8217;ve installed PowerShell, tried out a few cmdlets and are trying to figure out how you will use all this great information. Well, there&#8217;s more for you to take a look at.&nbsp; Even though PowerShell is a console, you sure to still want some GUI elements such as charts and gauges. Fortunately, that&#8217;s pretty easy to accomplish. You need to get a copy of <a href=\"http:\/\/www.powergadgets.com\">PowerGadgets<\/a>.&nbsp; <\/p>\n<p>I&#8217;ve been kicking the tires and am very impressed. There&#8217;s so much to cover that for now I&#8217;m simply going to show you one small example of how you can take advantage of these tools. <\/p>\n<p>Get-Process is nice and all, but a graph would be even better.&nbsp; Better yet if I can have it refresh every few seconds.&nbsp; Better yet again if I can have processes with a working set size of greater than 50MB highlighted in red. With PowerGadgets and PowerShell I can accomplish all of that with a single expression:<\/p>\n<p><span style=\"font-family: Courier New,Courier,mono;\">get-process |out-chart -value WorkingSet -floating -condition {$_.workingset -ge 50000000} -titles_0_text &#8220;Process Performance&#8221; -label name -size 900,300 -refresh 0:0:5 -legendbox_visible False<\/span><\/p>\n<p>The expression will probably wrap as you read this, but it is a single expression.&nbsp; This will create a floating chart window that looks like this<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/sapien.eponym.com\/screenshots\/procperf-resized.png\"><\/p>\n<p>I have a pretty high screen resolution so I set the chart size to 900 by 300. You might want to adjust it accordingly or remove the -size parameter altogether and use the defaults.<\/p>\n<p>Ideally, I&#8217;ve piqued you curiosity. I&#8217;ll explore other PowerGadget possibilities in the future. In the mean time, grab a free 60 day eval at <a href=\"http:\/\/www.powergadgets.com\/trial\/\">http:\/\/www.powergadgets.com\/trial\/<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By now you&#8217;ve installed PowerShell, tried out a few cmdlets and are trying to figure out how you will use all this great information. Well, there&#8217;s more for you to take a look at.  Even though PowerShell is a console, you sure to still want some GUI elements such as charts and gauges. Fortunately, that&#8217;s pretty easy to accomplish.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,25],"tags":[],"class_list":["post-11","post","type-post","status-publish","format-standard","hentry","category-general","category-windows-powershell"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}