Posted On March 31, 2019

Windows Cleanup

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Windows Cleanup
#Clean Up the WinSxS Folder
Dism.exe /online /Cleanup-Image /StartComponentCleanup

#Clean Up C:\Temp Folder
del c:\temp -Recurse -Force

#Cleanup Event Log
wevtutil el | Foreach-Object {wevtutil cl “$_”}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Install DotNet 3.5 – the Easy Way

$package="dotnet3.5"# Install Chocolateyif (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))}#…

PowerShell: Update Local Windows Machine

This script is meant to be ran on a local computer. To update remote machines,…

Bash Shell: Old School Migration of ESXi Guest Virtual Machines

Step 0: Preparations Estimate file-copying duration for cut-over:- Sustained storage transfer speed using a 1GB…
Other project: DragonCoin.com