Skip to content

EZRunServiceDesk/Windows-Workstation-Weekly-System-Maintenance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

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

About

Bootstrap weekly maintenance: disk cleanup, SFC, DISM, reboot.

Topics

Resources

Stars

Watchers

Forks