We piped the results of the Get-Process cmdlet to the Sort-Object cmdlet to sort them in descending order. Which property was used to sort? If we want to sort by the Working Set memory WS, what do we need to change on the cmdlet?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

We piped the results of the Get-Process cmdlet to the Sort-Object cmdlet to sort them in descending order. Which property was used to sort? If we want to sort by the Working Set memory WS, what do we need to change on the cmdlet?

 

 

 

Administrator. Windows PowerShell ISE
File Edit View Iools Debug Add-ons Help
PS C: \windows\system32> Get-Process | Sort-object -Descending
Handles NPM (K)
PM (K)
WS (K) VM(M)
CPU (s)
Id ProcessName
142
450
136
14
20
10
11
6320
20336
4256
13000
29224
8336
64
101
33
46
0.90
53.80
0.45
7880 WmiPrvSE
3568 WmiPrvSE
7292 WmiPrVSE
6192 WmiPrvSE
1716 WMIExplorer
128
1316
1082
136
6272
11796
97076
142444
9260
5128
9600
1.36
3.60
35
82468
641
15.49
0.76
0.20
0.50
0.27
0.27
0.30
0.34
4.84
1.05
0.33
2.48
0.06
6 1,029.76
10.03
5.40
30.84
410.11
3.43
27.74
9.55
0.41
2.40
7.78
0.20
88.84
0.09
0.16
0.27
1.36
30.84
0.11
71
651
110876
4408
2076
10548 WINWORD
10
10
58
44
808 winlogon
728 wininit
87
145
61
93
12
8
12
5068
8284
2464
60
37
49
2608 vmware-usbarbitrator64
2116 vmnetdhcp
3040 vmnat
11440
141
74
1036
202
141
6068
11392
6540
26252
35224
6936
20584
8772
2752
2932 UploaderService
4480 unsecapp
5144 UcMapi
5736 TIServiceMonitor
2972 TIRemoteService
4188 taskhost
4736 taskeng
4 system
356 svchost
464 svchost
576 svchost
940 svchost
1196 svchost
1580 svchost
992 svchost
2208 svchost
1884 svchost
4692 svchost
4056 svchost
1044 svchost
2628 svchost
2584 svchost
2872 sychost
2420 sqlservr
9052 spoolsv
400 smss
836 services
15252 SearchProtoco]Host
10000 SearchIndexer
15
7
31
4064
2768
14924
35336
213348
18556
4164
79
30
324
30
15
34
563
279
505
294
113
9
64
1019
569
192
18208
6
60
25260
92
61
536
509
18
139
9876
53344
307372
904
102
48012
579
28
19
244
684
426
331
332
43
14
19
34
11420
21536
6880
7732
314680
19700
24612
12876
13780
450
85
244
51
80
75
155
110
2964
15192
4012
3864
17248
7672
7600
83512
18
34
12
36
70
7
8
65500
2672
2684
5316
5360
8284
488
27
27
40
71
10
123
472
440
36
3608
247568
20516
740
103892
29552
1460
20984
10376
41604
55
253
27
131
4
365
291
1180
13164
5288
59252
189.57
0.05
10.76
17
65
12
58
+
76
313
Transcribed Image Text:Administrator. Windows PowerShell ISE File Edit View Iools Debug Add-ons Help PS C: \windows\system32> Get-Process | Sort-object -Descending Handles NPM (K) PM (K) WS (K) VM(M) CPU (s) Id ProcessName 142 450 136 14 20 10 11 6320 20336 4256 13000 29224 8336 64 101 33 46 0.90 53.80 0.45 7880 WmiPrvSE 3568 WmiPrvSE 7292 WmiPrVSE 6192 WmiPrvSE 1716 WMIExplorer 128 1316 1082 136 6272 11796 97076 142444 9260 5128 9600 1.36 3.60 35 82468 641 15.49 0.76 0.20 0.50 0.27 0.27 0.30 0.34 4.84 1.05 0.33 2.48 0.06 6 1,029.76 10.03 5.40 30.84 410.11 3.43 27.74 9.55 0.41 2.40 7.78 0.20 88.84 0.09 0.16 0.27 1.36 30.84 0.11 71 651 110876 4408 2076 10548 WINWORD 10 10 58 44 808 winlogon 728 wininit 87 145 61 93 12 8 12 5068 8284 2464 60 37 49 2608 vmware-usbarbitrator64 2116 vmnetdhcp 3040 vmnat 11440 141 74 1036 202 141 6068 11392 6540 26252 35224 6936 20584 8772 2752 2932 UploaderService 4480 unsecapp 5144 UcMapi 5736 TIServiceMonitor 2972 TIRemoteService 4188 taskhost 4736 taskeng 4 system 356 svchost 464 svchost 576 svchost 940 svchost 1196 svchost 1580 svchost 992 svchost 2208 svchost 1884 svchost 4692 svchost 4056 svchost 1044 svchost 2628 svchost 2584 svchost 2872 sychost 2420 sqlservr 9052 spoolsv 400 smss 836 services 15252 SearchProtoco]Host 10000 SearchIndexer 15 7 31 4064 2768 14924 35336 213348 18556 4164 79 30 324 30 15 34 563 279 505 294 113 9 64 1019 569 192 18208 6 60 25260 92 61 536 509 18 139 9876 53344 307372 904 102 48012 579 28 19 244 684 426 331 332 43 14 19 34 11420 21536 6880 7732 314680 19700 24612 12876 13780 450 85 244 51 80 75 155 110 2964 15192 4012 3864 17248 7672 7600 83512 18 34 12 36 70 7 8 65500 2672 2684 5316 5360 8284 488 27 27 40 71 10 123 472 440 36 3608 247568 20516 740 103892 29552 1460 20984 10376 41604 55 253 27 131 4 365 291 1180 13164 5288 59252 189.57 0.05 10.76 17 65 12 58 + 76 313
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY