Project

General

Profile

Feature #782

Cleanup Windows Updates on Windows Server 2012 Core

Added by Daniel Curtis about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PowerShell
Target version:
Start date:
03/20/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This a guide on using the dism.exe utility to clean up Windows Updates and temporary files on Windows Server 2012 Core using PowerShell.

  • From the command prompt, open a PowerShell session:
    powershell
    
  • Use the /AnalyzeComponentStore to analyze the size of the Component Store (WinSxS folder) in Windows:
    dism.exe /online /Cleanup-Image /AnalyzeComponentStore
    
  • To remove superseded and unused system files from a system, use the /StartComponentCleanup parameter:
    dism.exe /online /Cleanup-Image /StartComponentCleanup
    
  • Use the /ResetBase switch with the /StartComponentCleanup parameter of dism.exe, to remove all superseded versions of every component in the component store:
    dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
    

Resources

#1

Updated by Daniel Curtis about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#2

Updated by Daniel Curtis about 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF