What It Does
The script is read-only. It collects, in about 15 seconds, the facts a technician checks first when a user says the PC is slow, one row each with a plain-language concern when something looks wrong.
It reads uptime, CPU now and memory now with 3 samples one second apart, the top 5 programs by CPU and by memory with processes of the same name added together, and free space on each fixed drive. It reads how busy the disks are, by busy time and queue length, and whether Windows is on a hard disk instead of an SSD. It counts the programs that start at sign-in: Run keys, Startup folders and scheduled tasks that run at logon, without Microsoft's own tasks.
It also checks for a restart waiting for Windows Update, the active power plan, and whether the CPU is running well below its top speed under load. It reads the last blue screen in the System log, where one in the last 30 days counts as a concern, and whether Defender is scanning or using a lot of CPU, and how many antivirus products are active, because two slow a PC badly.
The answer lists the three most important concerns, worst first, or says no obvious cause was found. The table has every check so you can see what was normal. Startup entries that a user switched off in Task Manager are still counted.
Before You Run It
- Run it while the PC is slow, so the CPU and memory samples show the problem.
- Run it from your RMM as SYSTEM, or as an administrator.
- Read the full table as well as the three concerns, so you can see what was normal.
- Use OutputFormat Json and ExportPath to keep the result with the ticket.
Type and Risk
- Type: Report. It collects facts into a table and never alerts. It exits 0, or 2 when it could not run.
- Risk: Low. It reads and changes nothing.
- Restart: It never restarts the machine.
- Typical run: About 15 seconds.
- Example answer: "3 concerns: memory 6% available; C: has 8% free; up 41 days - restart it"
- Tested before listing on Windows 11 with Windows PowerShell 5.1, run as SYSTEM, against its own test cases.
Inputs
Pass an input as an argument (-Name value), as an environment variable with the same name, which is how most RMMs pass script variables, or change its default in the param() block at the top of the script. An argument wins over an environment variable, which wins over the default.
This script has no inputs of its own.
Every script also takes DryRun, OutputFormat (Text, Answer, Json or Csv), ExportPath and ResultField, which writes the answer to an RMM custom field.
License
Provided "as is" under the MIT License, without warranty of any kind. Test before production use. MSP Outpost and User First Digital Inc. accept no liability for any damage or loss.