|
1 | | -$time = Measure-Command { win-witr winlogon.exe | Out-Default } |
2 | | -"winlogon.exe check took {0} ms" -f $time.TotalMilliseconds |
| 1 | +REM Test system processes that should always be running |
| 2 | +Measure-Command { win-witr winlogon.exe | Out-Default} |
| 3 | +Measure-Command { win-witr lsass.exe | Out-Default} |
| 4 | +Measure-Command { win-witr win-witr.exe | Out-Default} |
| 5 | +Measure-Command { win-witr wininit.exe | Out-Default} |
| 6 | +Measure-Command { win-witr explorer.exe | Out-Default} |
| 7 | +Measure-Command { win-witr Registry| Out-Default} |
| 8 | +Measure-Command { win-witr csrss.exe| Out-Default} |
| 9 | +Measure-Command { win-witr fontdrvhost.exe | Out-Default} |
| 10 | +Measure-Command { win-witr svchost.exe | Out-Default} |
| 11 | +Measure-Command { win-witr smss.exe | Out-Default} |
| 12 | +Measure-Command { win-witr services.exe | Out-Default} |
| 13 | +Measure-Command { win-witr powershell.exe | Out-Default } |
| 14 | +Measure-Command { win-witr Runner.Listener.exe | Out-Default} |
| 15 | +Measure-Command { win-witr cmd.exe | Out-Default} |
| 16 | +Measure-Command { win-witr pwsh.exe | Out-Default} |
| 17 | +Measure-Command { win-witr Runner.Worker.exe | Out-Default} |
| 18 | +Measure-Command { win-witr hosted-compute-agent | Out-Default} |
| 19 | +Measure-Command { win-witr conhost.exe | Out-Default} |
| 20 | +Measure-Command { win-witr dwm.exe | Out-Default} |
| 21 | +Measure-Command { win-witr RuntimeBroker.exe | Out-Default} |
| 22 | +Measure-Command { win-witr SearchIndexer.exe | Out-Default} |
| 23 | +Measure-Command { win-witr spoolsv.exe | Out-Default} |
| 24 | +Measure-Command { win-witr taskhostw.exe | Out-Default} |
| 25 | +Measure-Command { win-witr dllhost.exe | Out-Default} |
3 | 26 |
|
4 | | -$time = Measure-Command { win-witr lsass.exe | Out-Default } |
5 | | -"lsass.exe check took {0} ms" -f $time.TotalMilliseconds |
6 | | - |
7 | | -$time = Measure-Command { win-witr win-witr.exe | Out-Default } |
8 | | -"win-witr.exe check took {0} ms" -f $time.TotalMilliseconds |
9 | | - |
10 | | -$time = Measure-Command { win-witr wininit.exe | Out-Default } |
11 | | -"wininit.exe check took {0} ms" -f $time.TotalMilliseconds |
12 | | - |
13 | | -$time = Measure-Command { win-witr explorer.exe | Out-Default } |
14 | | -"explorer.exe check took {0} ms" -f $time.TotalMilliseconds |
15 | | - |
16 | | -$time = Measure-Command { win-witr Registry | Out-Default } |
17 | | -"Registry check took {0} ms" -f $time.TotalMilliseconds |
18 | | - |
19 | | -$time = Measure-Command { win-witr csrss.exe | Out-Default } |
20 | | -"csrss.exe check took {0} ms" -f $time.TotalMilliseconds |
21 | | - |
22 | | -$time = Measure-Command { win-witr fontdrvhost.exe | Out-Default } |
23 | | -"fontdrvhost.exe check took {0} ms" -f $time.TotalMilliseconds |
24 | | - |
25 | | -$time = Measure-Command { win-witr svchost.exe | Out-Default } |
26 | | -"svchost.exe check took {0} ms" -f $time.TotalMilliseconds |
27 | | - |
28 | | -$time = Measure-Command { win-witr smss.exe | Out-Default } |
29 | | -"smss.exe check took {0} ms" -f $time.TotalMilliseconds |
30 | | - |
31 | | -$time = Measure-Command { win-witr services.exe | Out-Default } |
32 | | -"services.exe check took {0} ms" -f $time.TotalMilliseconds |
33 | | - |
34 | | -$time = Measure-Command { win-witr powershell.exe | Out-Default } |
35 | | -"powershell.exe check took {0} ms" -f $time.TotalMilliseconds |
36 | | - |
37 | | -$time = Measure-Command { win-witr Runner.Listener.exe | Out-Default } |
38 | | -"Runner.Listener.exe check took {0} ms" -f $time.TotalMilliseconds |
39 | | - |
40 | | -$time = Measure-Command { win-witr cmd.exe | Out-Default } |
41 | | -"cmd.exe check took {0} ms" -f $time.TotalMilliseconds |
42 | | - |
43 | | -$time = Measure-Command { win-witr pwsh.exe | Out-Default } |
44 | | -"pwsh.exe check took {0} ms" -f $time.TotalMilliseconds |
45 | | - |
46 | | -$time = Measure-Command { win-witr Runner.Worker.exe | Out-Default } |
47 | | -"Runner.Worker.exe check took {0} ms" -f $time.TotalMilliseconds |
48 | | - |
49 | | -$time = Measure-Command { win-witr hosted-compute-agent | Out-Default } |
50 | | -"hosted-compute-agent check took {0} ms" -f $time.TotalMilliseconds |
51 | | - |
52 | | -$time = Measure-Command { win-witr conhost.exe | Out-Default } |
53 | | -"conhost.exe check took {0} ms" -f $time.TotalMilliseconds |
54 | | - |
55 | | -$time = Measure-Command { win-witr dwm.exe | Out-Default } |
56 | | -"dwm.exe check took {0} ms" -f $time.TotalMilliseconds |
57 | | - |
58 | | -$time = Measure-Command { win-witr RuntimeBroker.exe | Out-Default } |
59 | | -"RuntimeBroker.exe check took {0} ms" -f $time.TotalMilliseconds |
60 | | - |
61 | | -$time = Measure-Command { win-witr SearchIndexer.exe | Out-Default } |
62 | | -"SearchIndexer.exe check took {0} ms" -f $time.TotalMilliseconds |
63 | | - |
64 | | -$time = Measure-Command { win-witr spoolsv.exe | Out-Default } |
65 | | -"spoolsv.exe check took {0} ms" -f $time.TotalMilliseconds |
66 | | - |
67 | | -$time = Measure-Command { win-witr taskhostw.exe | Out-Default } |
68 | | -"taskhostw.exe check took {0} ms" -f $time.TotalMilliseconds |
69 | | - |
70 | | -$time = Measure-Command { win-witr dllhost.exe | Out-Default } |
71 | | -"dllhost.exe check took {0} ms" -f $time.TotalMilliseconds |
72 | | - |
73 | | -REM Start notepad and test it, then close |
74 | 27 | start /B notepad.exe |
75 | 28 | timeout /t 1 /nobreak >nul |
76 | | -$time = Measure-Command { win-witr notepad.exe | Out-Default } |
77 | | -"notepad.exe check took {0} ms" -f $time.TotalMilliseconds |
| 29 | +Measure-Command { win-witr notepad.exe | Out-Default} |
78 | 30 | taskkill /F /IM notepad.exe >nul 2>&1 |
79 | 31 |
|
80 | 32 | REM Start calc and test it, then close |
81 | 33 | start /B calc.exe |
82 | 34 | timeout /t 1 /nobreak >nul |
83 | | -$time = Measure-Command { win-witr calc.exe | Out-Default } |
84 | | -"calc.exe check took {0} ms" -f $time.TotalMilliseconds |
| 35 | +Measure-Command { win-witr calc.exe | Out-Default} |
85 | 36 | taskkill /F /IM calc.exe >nul 2>&1 |
86 | 37 |
|
87 | 38 | REM Start mspaint and test it, then close |
88 | 39 | start /B mspaint.exe |
89 | 40 | timeout /t 1 /nobreak >nul |
90 | | -$time = Measure-Command { win-witr mspaint.exe | Out-Default } |
91 | | -"mspaint.exe check took {0} ms" -f $time.TotalMilliseconds |
| 41 | +Measure-Command { win-witr mspaint.exe | Out-Default} |
92 | 42 | taskkill /F /IM mspaint.exe >nul 2>&1 |
93 | 43 |
|
94 | | -$time = Measure-Command { win-witr powershell.exe | Out-Default } |
95 | | -"powershell.exe (final check) took {0} ms" -f $time.TotalMilliseconds |
| 44 | + |
| 45 | +Measure-Command { win-witr powershell.exe | Out-Default} |
| 46 | + |
| 47 | + |
0 commit comments