Windows Batch script to remove Windows Update Backup files

Create a file called "cleanup.cmd"
Paste text below there:

for /f %x in ('dir %SYSTEMROOT%\$*$ /s /b') do (rmdir /s /q %x)
for /f %x in ('dir %SYSTEMROOT%\ie7updates\KB* /s /b') do (rmdir /s /q %x)

Comments

Popular posts from this blog

How to make exrernal USB HDD available to the Synology Media center

How to loop "ipconfig /renew" until it gets IP address on remote PC to test DHCP using PowerShell

When users is trying to open PDF file from the internet using browser he gets following error message - Problem (1:1)