You're probably seeing this error when Windows tries to apply a system-wide setting, like a print spooler change or a display tweak. It's annoying and cryptic, but I've fixed it a dozen times for clients. Here's the real fix.
Quick Fix: Check the Print Spooler Registry Key
9 times out of 10, this error comes from a corrupted registry value under the print spooler. Had a client last month whose entire print queue died because of this exact code. Here's what to do:
- Press Win + R, type
regedit, hit Enter. - Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors. - Look for any subkey that has a blank or weird
Defaultvalue (like a bunch of zeroes or a garbled string). - Right-click that subkey and export it as a backup (just in case). Then delete it.
- Restart the Print Spooler service: Open Services, find Print Spooler, click Restart.
Test your print or system-wide setting again. That's almost always the fix. If not, move to the driver check below.
Why This Works
The SPI_ 0X0000059F error literally means the system parameter index (SPI) is pointing to an invalid value. In Windows, system-wide settings are stored in the registry under HKEY_CURRENT_USER\Control Panel\Desktop or HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control. When a value gets corrupted—usually from a bad driver install, a botched update, or third-party software that messes with system settings—Windows can't read it and throws this error. Deleting the corrupt key forces Windows to recreate it with default values. It's blunt, but it works.
Less Common Variations
Sometimes the problem isn't print-related. Here are other scenarios I've seen:
- Display settings: If you get this error when changing screen resolution or themes, check
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics. Look for any value with a name likeAppliedDPIthat's set to 0 or missing. Delete it or set it to 96 (96 DPI is the default). - After a driver update: Graphics driver updates sometimes nuke system parameters. Roll back the driver in Device Manager, or use Display Driver Uninstaller (DDU) in Safe Mode to do a clean reinstall. Skip the Windows Update version—get the driver straight from NVIDIA, AMD, or Intel.
- Third-party system utilities: Tools that tweak visual effects or power plans can corrupt SPI values. Uninstall any recent system optimizer or registry cleaner. Yes, even the paid ones. I've seen CCleaner do this.
Prevention
Stopping this error from coming back is straightforward:
- Never mess with registry keys unless you know exactly what you're doing. If you must tweak, take a snapshot or backup first.
- Keep drivers updated, but don't install beta or unstable releases. I always wait a week after a new GPU driver drops before updating a client's machine.
- Uninstall any software that claims to "optimize" your system registry. They're usually the cause, not the cure.
- Run a system file check once a month: open Command Prompt as admin and run
sfc /scannow. Catches corruption early.
That's it. No fluff. You should be back to a stable system in under 10 minutes. If the error persists after trying both the registry fix and the driver rollback, its time to consider a repair install of Windows—but I've only needed that once in five years of fixing this error.