A laptop displays storage and security settings beside an encrypted drive and a data-maintenance checklist.
A Windows 11 PC can clear temporary files, update many of its apps, and back up important folders while you’re doing something else. The trick is deciding what it should do unattended. A missed cleanup can wait; a cleanup rule that deletes the wrong file is harder to undo. And a backup that has never been restored is still an untested recovery plan.

At MakeUseOf, Tashreef Shareef built a maintenance routine around a 250 GB system SSD and a separate 1 TB SSD. His setup combines Windows tools with a Downloads sorter and an encrypted backup utility. It’s a useful starting point, with one change worth making: schedule the work that needs repeating, but save Windows repair commands for when there’s something to diagnose.

A laptop displays storage and security settings beside an encrypted drive and a data-maintenance checklist. Start with Storage Sense, but leave Downloads alone​

Open Settings > System > Storage > Storage Sense, turn it on, and choose how often it should run. Shareef uses weekly cleanup. Start by letting Windows handle temporary files, then choose a Recycle Bin retention period that gives you enough time to notice an accidental deletion. Run Storage Sense now after reviewing the settings, then return to Storage to see what still takes up space. Microsoft says Storage Sense works only on the system drive, usually C:, and needs you to be signed in and online. It won’t clean a second SSD just because both drives are in the same PC.

Leave automatic Downloads deletion off if that folder doubles as your filing cabinet. The cloud-content setting has a different consequence: it can make local copies online-only without deleting the cloud files. That saves space, but you’ll need a connection to open them again. Mark anything you need offline as Always keep on this device.

Give Windows Automatic Maintenance a realistic window​

Open Control Panel > System and Security > Security and Maintenance, expand Maintenance, and select Change maintenance settings. Pick a time when the PC is usually on, plugged in, and idle. For a laptop that’s shut down every night, a lunch break is a better bet than an overnight slot. The wake option is useful only if you want the PC to wake from sleep and its power configuration permits it. Microsoft’s Task Scheduler documentation explains that Automatic Maintenance takes advantage of idle time on AC power, so missing the selected hour doesn’t mean Windows can never catch up.

Set Active hours separately under Settings > Windows Update > Advanced options. That tells Windows when to avoid inconvenient update restarts; it doesn’t set the Automatic Maintenance schedule.

Schedule WinGet updates and check the first run​

Open Command Prompt under the account that will run the task and enter winget upgrade first. That previews the updates WinGet can see. If you’d rather decide when a critical app changes versions, keep that app out of the unattended routine. Microsoft notes that --all attempts eligible upgrades; it doesn’t cover every installed app, and it can skip pinned packages or apps whose installed version it can’t determine.

In Task Scheduler, choose Create Task and give it a name such as Weekly app updates. Under General, choose Run only when user is logged on. Shareef’s setup also selects Run with highest privileges; use elevation only if the installers you intend to run require it and you’re comfortable granting it. Add a weekly trigger for a time you’re normally signed in. Under Actions, set the program to cmd.exe and put this in Add arguments:

/c winget upgrade --all --silent --accept-package-agreements --accept-source-agreements >> "%USERPROFILE%\winget-weekly.log" 2>&1

The agreement flags accept terms without prompting, so review the sources and packages before enabling the task. In Settings, enable Run task as soon as possible after a scheduled start is missed if you want Task Scheduler to catch up when it can. That still doesn’t override the sign-in requirement. Run the task manually once, then open winget-weekly.log in your user folder and look for skipped or failed upgrades. If there’s no log, confirm that winget upgrade works under the same account and check the task’s action and power conditions.

Keep DISM and SFC for troubleshooting​

Shareef schedules an elevated batch file once a month and logs its DISM and System File Checker output. Logging is useful, but Microsoft documents these as repair tools for missing or corrupted Windows files, not as monthly preventive maintenance. If you suspect corruption, open Command Prompt as administrator and run DISM.exe /Online /Cleanup-Image /RestoreHealth. Wait for it to report success before running sfc /scannow. Read SFC’s final result: reaching 100 percent means the scan finished, not necessarily that it repaired everything. If DISM can’t find repair files, investigate that error rather than scheduling another pass and hoping it clears.

Sort Downloads before you automate deletion​

DropIt, the open-source utility Shareef uses, pairs a file-matching rule with an action. Create a profile with separate rules for PDFs, images, or installers, and test it by dragging copies of sample files onto DropIt’s desktop target. Once each sample lands where you expect, assign that profile to monitor Downloads. Start with Copy or Move, not Delete, and make sure the destination folders are included in your backup. A rule can tell that a file ends in .pdf; it can’t tell that it’s the only copy of your tax return.

Back up files, then test how you’d get them back​

Microsoft’s Windows Backup app syncs selected folders to OneDrive with a personal Microsoft account. That may cover what you need, but check where your important files actually live, especially if you keep projects on another drive. For a different destination or a custom set of source folders, Shareef uses Duplicati. In its interface, add a backup, choose the folders, select a destination such as an external drive or supported cloud storage, and set a schedule and retention policy. If you enable encryption, keep the passphrase somewhere you can access without the original PC. Duplicati can restore directly from the backup files without the original configuration, but it still needs access to the destination and the encryption passphrase.

Run the first backup manually. Then use Restore to recover a sample file to a different folder and open it. If the destination can’t be reached, check that the external drive is connected or use Duplicati’s connection test for the configured storage. If your goal is to restore Windows, apps, and disk partitions onto a replacement drive, plan for a system image and bootable rescue media instead. Macrium Reflect is one example; verify that you can boot its rescue media and that it can see the stored image before you need it.

For a bad driver or system change, set up the narrower rollback option too. Search Start for Create a restore point, select the system drive under System Protection, and choose Configure > Turn on system protection. Set a disk-space limit, apply the change, and use Create to make an initial restore point. Restore points cover Windows system files, applications, registry entries, and settings. They won’t bring back a deleted document.

The occasional manual check is still worth keeping: review free space and drive health, read the update log, and restore a sample file. If you only test one part of the setup today, make it the restore. That’s the part you’ll need when the PC can no longer run any of the others.

 

References

  1. The maintenance checks that keep a PC healthy run themselves, and here’s how I set them up - MakeUseOf MakeUseOf 2026-11-30T12:00:16+00:00
  2. Running a backup | Duplicati docs.duplicati.com
  3. Automatic maintenance (Task Scheduler) - Win32 apps | Microsoft Learn learn.microsoft.com