Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Clear Windows Update Cache Script

This PowerShell script clears the Windows Update cache on Windows clients and servers.

Features

  • Stops the Windows Update service
  • Removes the cache folder
  • Restarts the Windows Update service
  • Prompts for confirmation before running (optional)

System Requirements

  • Windows client or server operating system (Windows 7/Server 2008 R2 or newer)
  • PowerShell 3.0 or higher
  • Administrative privileges on the target machine

Usage

  1. Open PowerShell with administrative privileges. You can do this by searching for "PowerShell" in the Start menu, right-clicking on "Windows PowerShell," and selecting "Run as administrator."
  2. Navigate to the directory containing the Clear-WindowsUpdateCache.ps1 script.
  3. Run the script using the following command:
.\Clear-WindowsUpdateCache.ps1 -Confirm $true

By default, the script will prompt for confirmation before running. To skip the confirmation prompt, use $false instead of $true.

About

Clear Windows Update cache script

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages