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

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

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