Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 842 Bytes

File metadata and controls

26 lines (17 loc) · 842 Bytes

Weekly System Maintenance

A PowerShell solution to automate routine Windows maintenance tasks on a weekly schedule.
This repository contains two scripts:

  • CreateWeeklyMaintenance.ps1 – bootstraps and installs the maintenance task.
  • WeeklyMaintenance.ps1 – performs Disk Cleanup, SFC scan, DISM restore, and optional reboot.

📋 Features

  • Configurable toggles – enable/disable Disk Cleanup, SFC, DISM, and reboot steps
  • Runs as SYSTEM – full privileges for system-level repairs
  • Scheduled every Sunday @ 11:00 PM – hands-off weekly maintenance
  • Idempotent setup – re-running the setup script overwrites existing task

🔧 Requirements

  • Windows 10 / Server 2016 or newer
  • PowerShell 5.1 or later
  • Administrative privileges to register scheduled tasks