Your technology certification is waiting. Enroll in Cloud Class ®
Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.
rem Stop BITS
Net Stop "Background Intelligent Transfer Service"
rem Stop Windows Update Service
Net Stop "Windows Update"
rem change to Windows Software Distribution Directory--DataStore
echo Wipe the %windir%\SoftwareDistribution\DataStore folder
rem wipe everything out in the DataStore folder
erase "%windir%\SoftwareDistribution\DataStore\*.*" /Q /F /S
rem wipe any sub directories
for /d %%X in ("%windir%\SoftwareDistribution\DataStore\*") do rmdir /s /q %%X
rem change to download folder
echo Wipe the %windir%\SoftwareDistribution\Download folder
rem wipe everything out in the Downloads folder
erase *.* /Q /F
rem loop through all sub directories in Download and kill them all
for /d %%X in ("%windir%\SoftwareDistribution\Download\*") do rmdir /s /q %%X
rem Start Windows Update Service
Net Start "Windows Update"
rem Start BITS
Net Start "Background Intelligent Transfer Service"
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.