here is a batch file I use at work to clean up the software distro folder and restart the services. Just copy and paste into notepad and save it to something.bat:

echo off
cls



net stop wuauserv
net stop bits


rmdir /s/q %windir%\softwaredistribution
regsvr32 /s %windir%\system32\wups2.dll

net start wuauserv
net start bits