Skip to content

System Tools

By the end of this chapter you will be able to keep a machine awake on a timer, edit three of Windows' most awkward system files through friendly editors instead of raw text, have light and dark mode follow the sun, control your monitors' own settings from a flyout, and present with a screen zoom. None of these tools is large; together they are the chapter most likely to be open on a new machine's first evening.

Awake: stay awake, without touching the power plan

Awake keeps the computer — and optionally the screen — awake for as long as you say. The point is what it does not do: it never edits your power plan, so when Awake stops, the machine returns to exactly the sleep behaviour you already had.

Modes, from the tray icon or Settings:

  • Passive — Awake is loaded but the power plan rules. (Off, honestly.)
  • Keep awake indefinitely — until you switch it back.
  • Keep awake for a time interval — the everyday one: two hours for the render, the download, the long copy.
  • Keep awake until an expiration time — "until 6 PM" rather than a duration.

A Keep screen on switch decides whether the display stays lit too. The tray icon changes with the state, so a glance tells you which mode you left running. Two honest details: Awake stops keeping the display on when the workstation is locked, and scripters get a command line — PowerToys.Awake.exe accepts --time-limit, --expire-at, and --pid (stay awake while another process lives). Its settings live in %LocalAppData%\Microsoft\PowerToys\Awake\.

Hosts File Editor: the hosts file, with backups

The hosts file is a small text file (%SystemRoot%\System32\drivers\etc\hosts) that maps names to addresses ahead of DNS — used for blocking, for testing a site before its address is public, and for naming machines on a home network. Editing it raw is a rite of passage best skipped.

The Hosts File Editor (opened from the PowerToys tray menu — it has no shortcut) presents it as a table: address, hostnames, comment, and an on/off switch per row, so an entry can be disabled rather than deleted. Before it saves, it keeps a backup named hosts_PowerToysBackup_ plus the date and time, in the same folder; backups are kept for 15 days, at most the latest five. Because the file is a system file, the editor runs as administrator by default — the prompt is the feature working as designed.

Registry Preview: see a .reg file before it bites

A .reg file is a script that writes into the Windows Registry; double-clicking one has always been an act of faith. With Registry Preview enabled, right-click a .reg file and choose Preview instead: the left pane shows the file's text, the right shows it as a tree — which keys and values it would set, delete or change — and nothing has happened yet.

From the preview you can Write to registry, which asks for confirmation and then applies it, or Open key in the Registry Editor to inspect the current state first. Files are capped at 10 MB, past which the tool declines rather than guessing. The rule this enables is absolute: a .reg file from the internet gets previewed, every time.

Environment Variables: profiles for a messy dialog

Environment variables are named values — PATH above all — that programs inherit. Windows' built-in editor for them is a small, unforgiving dialog. The PowerToys editor shows System and User variables in one clear list, and adds the idea the built-in one lacks: profiles.

A profile is a named set of variable values. Precedence is fixed and sensible: Profile beats User beats System. Only one profile is applied at a time — switching profiles is how a machine wears its "work" PATH on weekdays and its "project" PATH at weekends. Applying a profile first saves a backup variable, and un-applying restores your previous values from it, so an experiment is reversible by design. Editing System variables needs administrator rights, as it should.

Light Switch: dark mode follows the sun

Light Switch moves Windows between light and dark themes on a schedule, so the screen can be bright at noon and gentle at midnight without you remembering anything:

  • Sunset to Sunrise — real times for your location (location services, or coordinates you type in), with an offset in minutes if your evenings start early.
  • Fixed hours — two clock times of your choosing.
  • Follow Night Light — sync with Windows' own night schedule.
  • Or Off, keeping only the manual theme toggle shortcut the tool also offers.

You choose whether the switch applies to the System interface, to Apps, or both. And if Power Display (next) is enabled, Light Switch can apply a monitor profile at each transition — brightness and colour temperature changing with the theme.

Power Display: your monitors' buttons, in software

External monitors have brightness, contrast, input and volume hidden behind buttons on their backs. Power Display talks to them over DDC/CI — the control channel built into display cables — and gathers the controls into one flyout: brightness, contrast, volume, input source, rotation, colour temperature, and power state, per monitor. Combinations can be saved as profiles ("Work", "Gaming Mode") applied in one click, linked brightness can move all monitors together, and scrolling the mouse wheel over its tray icon can ride the brightness. There is a full command-line tool (PowerToys.PowerDisplay.CLI.exe) that lists monitors, reads and sets values, and applies profiles, for scripts.

Microsoft's own honesty about this tool is worth copying into any guide: DDC/CI is "well supported but sometimes flaky," and on a small number of monitors with malformed capability strings, reading them can trigger a Windows bug that crashes the system. Power Display asks for confirmation before its first enable; if a crash is detected it disables itself, puts the monitor on an exclusion list, and explains itself in Settings before you re-enable it. Colour temperature, input switching and power state each carry their own confirmation dialog, because a monitor can hold a bad value after the software is gone. None of this makes the tool dangerous to try — it makes it a tool to enable deliberately, one monitor at a time.

The small print of the system shelf

Four more, briefly:

  • Screen Ruler — Win+Ctrl+Shift+M opens a measuring toolbar that uses edge detection to measure pixels on screen: drag a bounds box, or measure horizontal and vertical spacing at a point. Clicking copies the measurement to the clipboard. Designers and anyone aligning a layout will use it weekly.
  • ZoomIt — the veteran Sysinternals presentation tool, now bundled. Ctrl+1 zooms into the screen, Ctrl+2 draws on it without zooming, Ctrl+4 is live zoom, Ctrl+3 runs a break timer, and it can record and snip as well. A standalone Sysinternals version continues to exist for machines without PowerToys.
  • Command Not Found — with PowerShell 7, type a command that is not installed and it tells you the WinGet package that provides it. (Its own documentation page could not be checked for this guide; that one line is what Microsoft's developer site states, and it is all this guide claims.)
  • DSC and scripts — several tools now ship command lines (Awake, File Locksmith, Image Resizer, Power Display, and more in the current release), because a settings file is JSON and a tool without a UI is a tool a script can drive. Chapter 10 uses that fact.