{"id":78667,"date":"2026-05-24T19:05:55","date_gmt":"2026-05-24T19:05:55","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78667"},"modified":"2026-05-24T19:05:55","modified_gmt":"2026-05-24T19:05:55","slug":"variations-of-get-process-select-nameidcpu-sort-cpu-descending","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78667","title":{"rendered":"Variations of: Get-Process | Select Name,Id,CPU | Sort CPU -Descending"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Yes. These commands produce the <strong>same type of output<\/strong>: process <code>Name<\/code>, <code>Id<\/code>, and <code>CPU<\/code>, sorted by CPU in descending order.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Variation 1: Full cmdlet names<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process |\nSelect-Object -Property Name, Id, CPU |\nSort-Object -Property CPU -Descending\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Variation 2: Sort first, then select<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process |\nSort-Object -Property CPU -Descending |\nSelect-Object -Property Name, Id, CPU\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Variation 3: Use aliases<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>gps | select Name,Id,CPU | sort CPU -Descending\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Variation 4: Show only top 10 highest CPU processes<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process |\nSort-Object CPU -Descending |\nSelect-Object Name, Id, CPU -First 10\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Best teaching version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-Process |\nSort-Object -Property CPU -Descending |\nSelect-Object -Property Name, Id, CPU\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Comment:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># This command gets all running processes, sorts them by CPU time from highest to lowest,\n# and displays only the Name, Id, and CPU properties.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">REF: AI Tools\/ChatGPT<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes. These commands produce the same type of output: process Name, Id, and CPU, sorted by CPU in descending order. Variation 1: Full cmdlet names Variation 2: Sort first, then select Variation 3: Use aliases Variation 4: Show only top 10 highest CPU processes Best teaching version: Comment: REF: AI Tools\/ChatGPT<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1981],"tags":[],"class_list":["post-78667","post","type-post","status-publish","format-standard","hentry","category-power-shell","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78665,"url":"http:\/\/bangla.sitestree.com\/?p=78665","url_meta":{"origin":78667,"position":0},"title":"Explain: Get-Process | Select Name,Id,CPU | Sort CPU -Descending","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"This command shows running processes with selected columns and sorts them by CPU usage\/time. Get-Process | Select Name,Id,CPU | Sort CPU -Descending Meaning step by step 1. Get-Process Get-Process Gets all running processes on the computer. 2. Pipeline | | Passes the process objects to the next command. 3. Select\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78675,"url":"http:\/\/bangla.sitestree.com\/?p=78675","url_meta":{"origin":78667,"position":1},"title":"Explain the command and each part : Get-Service * | Select-Object Status, DisplayName | Where-Object { $_.Status -eq &#8220;Running&#8221; -and $_.DisplayName -like &#8220;Windows*\u201c } | Sort-Object DisplayName -Descending | Format-Table -AutoSize","author":"Sayed","date":"May 24, 2026","format":false,"excerpt":"This command lists running Windows services whose display name starts with \u201cWindows\u201d, sorts them by display name in descending order, and displays the result in a neat table. Corrected version: Get-Service * | Select-Object Status, DisplayName | Where-Object { $_.Status -eq \"Running\" -and $_.DisplayName -like \"Windows*\" } | Sort-Object DisplayName\u2026","rel":"","context":"In &quot;Power Shell&quot;","block_context":{"text":"Power Shell","link":"http:\/\/bangla.sitestree.com\/?cat=1981"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78337,"url":"http:\/\/bangla.sitestree.com\/?p=78337","url_meta":{"origin":78667,"position":2},"title":"Check Your Linux Knowledge","author":"Sayed","date":"July 27, 2025","format":false,"excerpt":"Linux Installation: Pre Assessment What do you need handy before installing Ubuntu in a Virtual Box 0 points Check all that apply. \u00a0Oracle Virtualbox Installed \u00a0ISO Image of the Linux \u00a0ISO Image in USB Drive What is usually the best place to download\/take a software to install? * 1 point\u2026","rel":"","context":"In &quot;Anything Linux&quot;","block_context":{"text":"Anything Linux","link":"http:\/\/bangla.sitestree.com\/?cat=1976"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/07\/image-8.png?resize=525%2C300 1.5x"},"classes":[]},{"id":78625,"url":"http:\/\/bangla.sitestree.com\/?p=78625","url_meta":{"origin":78667,"position":3},"title":"Polished: How to Find and Import Cisco Router Images (BIN\/IMAGE) Into GNS3","author":"Author-Check- Article-or-Video","date":"November 26, 2025","format":false,"excerpt":"Polished: How to Find and Import Cisco Router Images (BIN\/IMAGE) Into GNS3 (By ChatGPT) To use classic Cisco routers such as the 3725 in your GNS3 labs, you\u2019ll need the correct IOS image files. This guide explains where to find them, where to store them, and how to import them\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6022,"url":"http:\/\/bangla.sitestree.com\/?p=6022","url_meta":{"origin":78667,"position":4},"title":"\u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09eb \u09b8\u09b0\u099f\u09bf\u0982 \u0985\u09cd\u09af\u09be\u09b0\u09c7 (PHP 5 Sorting Arrays)","author":"Author-Check- Article-or-Video","date":"February 14, 2015","format":false,"excerpt":"\u0986\u0995\u09cd\u09a4\u09be\u09b0\u09c1\u099c\u09cd\u099c\u09be\u09ae\u09be\u09a8 Department of CSE, University of Chittagong \u00a0 \u098f\u0995\u099f\u09bf \u0985\u09cd\u09af\u09be\u09b0\u09c7\u09b0 \u0987\u09b2\u09bf\u09ae\u09c7\u09a8\u09cd\u099f\u0997\u09c2\u09b2\u09cb \u09ac\u09b0\u09cd\u09a3\u09be\u09a8\u09c1\u0995\u09cd\u09b0\u09ae\u09bf\u0995 (alphabetical) \u0985\u09a5\u09ac\u09be \u09b8\u0982\u0996\u09cd\u09af\u09be\u09b8\u09c2\u099a\u0995 (numerical) \u0995\u09cd\u09b0\u09ae \u0985\u09a8\u09c1\u09b8\u09be\u09b0\u09c7 \u09b8\u09be\u099c\u09be\u09a8\u09cb \u09af\u09be\u09df\u0964 \u098f\u0987 \u09b8\u09be\u099c\u09be\u09a8\u09cb\u099f\u09be ascending (\u098a\u09b0\u09cd\u09a7\u09cd\u09ac\u0997\u09be\u09ae\u09c0) \u0985\u09a5\u09ac\u09be descending (\u0985\u09a7\u09cb\u0997\u09be\u09ae\u09c0) \u0989\u09ad\u09df \u09aa\u09cd\u09b0\u0995\u09be\u09b0\u09c7\u09b0 \u09b9\u09a4\u09c7 \u09aa\u09be\u09b0\u09c7\u0964 \u09aa\u09bf\u098f\u0987\u099a\u09aa\u09bf \u09a4\u09c7 \u0985\u09cd\u09af\u09be\u09b0\u09c7 \u09b8\u09be\u099c\u09be\u09a8\u09cb\u09b0 \u09ac\u09be sort \u0995\u09b0\u09be\u09b0 \u099c\u09a8\u09cd\u09af \u09af\u09c7 \u09b8\u09ac \u09ab\u09be\u0982\u09b6\u09a8 \u09ac\u09cd\u09af\u09be\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09be \u09b9\u09df \u0990\u0997\u09c1\u09b2\u09cb \u09a8\u09bf\u099a\u09c7 \u09a6\u09c7\u0993\u09df\u09be \u09b9\u09b2\u0983 \u00a0\u2026","rel":"","context":"In &quot;\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial&quot;","block_context":{"text":"\u09aa\u09bf \u098f\u0987\u099a \u09aa\u09bf \u099f\u09bf\u0989\u099f\u09cb\u09b0\u09bf\u09df\u09be\u09b2 \u0964 PHP tutorial","link":"http:\/\/bangla.sitestree.com\/?cat=172"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13442,"url":"http:\/\/bangla.sitestree.com\/?p=13442","url_meta":{"origin":78667,"position":5},"title":"2. Array ascending descending","author":"Author-Check- Article-or-Video","date":"October 28, 2017","format":false,"excerpt":"\u0986\u09aa\u09a8\u09be\u09a6\u09c7\u09b0 \u0995\u09cb\u09a8 \u09ae\u09a4\u09be\u09ae\u09a4 \u09ac\u09be \u09aa\u09cd\u09b0\u09b6\u09cd\u09a8 \u09a5\u09be\u0995\u09b2\u09c7 \u099c\u09be\u09a8\u09be\u09ac\u09c7\u09a8 \u0964","rel":"","context":"In &quot;\u09a1\u09be\u099f\u09be \u09b8\u09cd\u099f\u09cd\u09b0\u09be\u0995\u099a\u09be\u09b0 | Data Structure&quot;","block_context":{"text":"\u09a1\u09be\u099f\u09be \u09b8\u09cd\u099f\u09cd\u09b0\u09be\u0995\u099a\u09be\u09b0 | Data Structure","link":"http:\/\/bangla.sitestree.com\/?cat=1883"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78667"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78667\/revisions"}],"predecessor-version":[{"id":78668,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78667\/revisions\/78668"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78667"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}