:: wait for system to fully load by launching a text file
C:\windows\system32\notepad.exe G:\script\wait.txt
:: move mydocs.dll while the rest of the script runs
move /y C:\WINDOWS\system32\mydocs.dll C:\mydocs.dll
:: move NI stuff to a more reasonable location
mkdir "C:\Program Files\Native Instruments\Guitar Rig 2\Standalone"
move /y "C:\GuitarRig 2.exe" "C:\Program Files\Native Instruments\Guitar Rig 2\Standalone\GuitarRig 2.exe"
move /y "C:\GuitarRig 2DXi.dll" "C:\Program Files\Native Instruments\Guitar Rig 2\Standalone\GuitarRig 2DXi.dll"
mkdir "C:\Program Files\Native Instruments\Reaktor 5\standalone"
move /y "C:\Reaktor5.exe" "C:\Program Files\Native Instruments\Reaktor 5\standalone\Reaktor5.exe"
move /y "C:\Reaktor5DXi.dll" "C:\Program Files\Native Instruments\Reaktor 5\standalone\Reaktor5DXi.dll"
::delete some uninstallers
del /q C:\WINDOWS\dsdxirmv.exe
del /q C:\WINDOWS\unvise32.exe
del /q C:\WINDOWS\unwise.exe
del /q c:\unwise.exe
del /q c:\windows\iun6002.exe
del /q c:\windows\setup1.exe
del /q c:\windows\st6unst.exe
:: clean up user folders
rmdir /s /q "C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto"
rmdir /s /q "C:\Documents and Settings\All Users\Application Data\Microsoft\HTML Help"
rmdir /s /q "C:\Documents and Settings\All Users\Application Data\Microsoft\MSDAIPP"
rmdir /s /q "C:\Documents and Settings\All Users\Application Data\Microsoft\Network"
rmdir /s /q "C:\Documents and Settings\All Users\Application Data\nView_Profiles"
rmdir /s /q "C:\Documents and Settings\All Users\Desktop"
rmdir /s /q "C:\Documents and Settings\All Users\Documents"
rmdir /s /q "C:\Documents and Settings\All Users\Favorites"
rmdir /s /q "C:\Documents and Settings\All Users\DRM"
rmdir /s /q "C:\Documents and Settings\All Users\Start Menu\Programs\"
del /q "C:\Documents and Settings\All Users\Start Menu\Programs\*.*"
del /q "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\*.*"
del /q "C:\Documents and Settings\All Users\Start Menu\*.*"
rmdir /s /q "C:\Documents and Settings\All Users\Templates"
rmdir /s /q "C:\Documents and Settings\Default User"
del /q "C:\Documents and Settings\%username%\*.txt"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A0.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A1.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A2.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A3.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A4.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A5.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A6.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A7.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A8.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1A9.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1AA.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1AB.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1AC.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1AD.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1AE.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1AF.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs10A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs10B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs10C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs10D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs10E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs10F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs11A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs11B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs11C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs11D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs11E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs11F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs100.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs101.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs102.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs103.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs104.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs105.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs106.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs107.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs108.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs109.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs110.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs111.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs112.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs113.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs114.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs115.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs116.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs117.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs118.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs119.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs120.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs121.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs122.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs123.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs124.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs125.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs126.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs127.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs128.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs129.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs130.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs131.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs132.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs133.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs134.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs135.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs136.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs137.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs138.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs139.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs140.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs141.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs142.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs143.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs144.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs145.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs146.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs147.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs148.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs149.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs150.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs151.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs152.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs153.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs154.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs155.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs156.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs157.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs158.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs159.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs160.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs161.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs162.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs163.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs164.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs165.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs166.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs167.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs168.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs169.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs16A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs16B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs16C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs16D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs16E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs16F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs170.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs171.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs172.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs173.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs174.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs175.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs176.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs177.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs178.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs179.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs17A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs17B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs17C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs17D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs17E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs17F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs180.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs181.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs182.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs183.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs184.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs185.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs186.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs187.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs188.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs189.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs18F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs190.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs191.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs192.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs193.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs194.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs195.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs196.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs197.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs198.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs199.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs19A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs19B.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs19C.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs19D.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs19E.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs19F.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF0.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF1.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF2.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF3.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF4.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF5.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF6.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF7.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF8.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsF9.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsFA.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsFB.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsFC.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsFD.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsFE.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zsFF.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d1.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d2.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d3.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d4.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d5.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d6.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d7.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d8.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1d9.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dA.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dB.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dC.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dD.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dE.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dF.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dG.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dH.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1dI.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e0.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zS1E1.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e2.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e3.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e4.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e5.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e6.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e7.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e8.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1e9.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eA.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eB.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eC.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eD.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eE.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eF.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eG.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1eH.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f1.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f2.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f3.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f4.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f5.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f6.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f7.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f8.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1f9.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fA.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fb.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fc.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fd.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fe.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1ff.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fg.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs1fh.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs201.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs202.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs203.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs204.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs205.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs206.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs207.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs208.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs209.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs20h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs211.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs212.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs213.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs214.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs215.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs216.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs217.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs218.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs219.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs21h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs221.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs222.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs223.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs224.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs225.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs226.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs227.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs228.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs229.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs22h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs231.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs232.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs233.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs234.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs235.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs236.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs237.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs238.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs239.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs23h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs241.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs242.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs243.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs244.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs245.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs246.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs247.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs248.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs249.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs24h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs251.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs252.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs253.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs254.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs255.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs256.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs257.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs258.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs259.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs25h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs261.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs262.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs263.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs264.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs265.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs266.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs267.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs268.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs269.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs26h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs270.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs271.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs272.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs273.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs274.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs275.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs276.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs277.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs278.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs279.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27A.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27b.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27c.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27d.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27e.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27f.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27g.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\7zs27h.tmp"
rmdir /s /q "C:\Documents and Settings\%username%\Application Data\Microsoft"
rmdir /s /q "C:\Documents and Settings\%username%\Application Data\Macromedia"
rmdir /s /q "C:\Documents and Settings\%username%\Cookies"
del /q "C:\Documents and Settings\%username%\Desktop\*.*"
rmdir /s /q "C:\Documents and Settings\%username%\Favorites"
rmdir /s /q "C:\Documents and Settings\%username%\Favorites\Links"
rmdir /s /q "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft"
rmdir /s /q "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\CD Burning"
rmdir /s /q "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Credentials"
rmdir /s /q "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\MMC"
rmdir /s /q "C:\Documents and Settings\%username%\Local Settings\Temp"
rmdir /s /q "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files"
rmdir /s /q "C:\Documents and Settings\%username%\My Documents\My Music"
rmdir /s /q "C:\Documents and Settings\%username%\My Documents\My Pictures"
rmdir /s /q "C:\Documents and Settings\%username%\Nethood"
rmdir /s /q "C:\Documents and Settings\%username%\Printhood"
del /q "C:\Documents and Settings\%username%\Start Menu\*.*"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Notepad++"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Google Chrome"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Accessories"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Avidemux"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Burrrn"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Exact Audio Copy"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Gimpshop"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Icy Radio"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Imgburn"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\SPEQ Mathematics"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Virtual Dimension"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\CCleaner"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Foxit Reader"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\HijackThis"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\uTorrent"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\1100DX"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Arturia"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Goldwave"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Korg"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments Guitar Rig 2"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments Kontakt"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments Reaktor 5"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Sounder v1.1d"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Steinberg Cubase SX 3"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\SyncroSoft Emu"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Synth1"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Texmaker"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\warp"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Alesis"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\AIPL"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Alesis"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Antares Microphone Modeler DirectX"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\ASIO4ALL v2"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Emagic"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\FXpansion"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Image-Line"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\JXSynth v1.1 VSTi"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments FM7"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments Pro-53"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Native Instruments Spektral Delay"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Notepad++"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Orange Vocoder"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\PC-JX8P"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Power Tab Software"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\reFX TBL BassLine"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\rgcaudio software"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Spectral Design"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Steinberg LM4"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Steinberg VoiceMachine"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Synapse"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\TCWorks"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\VAZ"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Voxengo"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Waldorf"
rmdir /s /q "C:\Documents and Settings\%username%\Start Menu\Programs\Waves"
del /q "C:\Documents and Settings\%username%\Start Menu\Programs\*.*"
rmdir /s /q "C:\Documents and Settings\%username%\SendTo"
rmdir /s /q "C:\Documents and Settings\%username%\Templates"
rmdir /s /q "C:\Documents and Settings\NetworkService\Application Data"
rmdir /s /q "C:\Documents and Settings\%username%\framedyn"
rmdir /s /q "C:\Documents and Settings\LocalService"
rmdir /s /q "C:\Documents and Settings\NetworkService"
::remove folders
rmdir /s /q "C:\Intel"
rmdir /s /q "C:\NVIDIA"
rmdir /s /q "C:\Cakewalk Projects"
::clean recycle bins
rmdir /s /q C:\RECYCLER
rmdir /s /q D:\RECYCLER
rmdir /s /q E:\RECYCLER
rmdir /s /q F:\RECYCLER
rmdir /s /q G:\RECYCLER
rmdir /s /q H:\RECYCLER
rmdir /s /q I:\RECYCLER
rmdir /s /q J:\RECYCLER
rmdir /s /q K:\RECYCLER
rmdir /s /q L:\RECYCLER
rmdir /s /q M:\RECYCLER
rmdir /s /q N:\RECYCLER
rmdir /s /q O:\RECYCLER
rmdir /s /q P:\RECYCLER
rmdir /s /q Q:\RECYCLER
rmdir /s /q R:\RECYCLER
rmdir /s /q S:\RECYCLER
rmdir /s /q T:\RECYCLER
rmdir /s /q U:\RECYCLER
rmdir /s /q V:\RECYCLER
rmdir /s /q W:\RECYCLER
rmdir /s /q X:\RECYCLER
rmdir /s /q Y:\RECYCLER
rmdir /s /q Z:\RECYCLER
:: cleanup Program Files folder
del /q "C:\Program Files\7-Zip\Lang\*.txt"
rmdir /s /q "C:\Program Files\Ableton\Live 7.0.1\Ableton\Live 7.0.1\Resources\Devices\Mac"
rmdir /s /q "C:\Program Files\Ableton\Live 7.0.1\Ableton\Live 7.0.1\Resources\EventRecorderHelpers\ReplacerPlugin\Mac"
rmdir /s /q "C:\Program Files\Alleycode\Forms"
rmdir /s /q "C:\Program Files\Alleycode\Tutorial"
rmdir /s /q "C:\Program Files\Arboretum Systems\Hyperprism 2.5.0\Hyperprism Manual HTML"
rmdir /s /q "C:\Program Files\Audacity\Languages"
rmdir /s /q "C:\Program Files\Burrrn\Language"
rmdir /s /q "C:\Program Files\Camstudio\Help_files"
rmdir /s /q "C:\Program Files\Camstudio\Helpproducer_files"
del /q "C:\Program Files\Camstudio\helpProducer.htm"
del /q "C:\Program Files\Camstudio\help.htm"
rmdir /s /q "C:\Program Files\Common Files\Java\Update"
rmdir /s /q "C:\Program Files\DVD Shrink\Web"
rmdir /s /q "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\manual"
move /y "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\Texts\VCDPrefsEN.lng" "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\VCDPrefsEN.lng"
rmdir /s /q "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\Texts"
mkdir "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\Texts"
move /y "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\VCDPrefsEN.lng" "C:\Program Files\Elaborate Bytes\VirtualCloneDrive\Texts\VCDPrefsEN.lng"
rmdir /s /q "C:\Program Files\Graph\Locale"
rmdir /s /q "C:\Program Files\Graph\Help"
rmdir /s /q "C:\Program Files\ImgBurn\Sounds"
rmdir /s /q "C:\Program Files\ImgBurn\Languages"
rmdir /s /q "C:\Program Files\InfraRecorder\Languages"
del /q "C:\Program Files\komposer\chrome\tipoftheday.jar"
del /q "C:\Program Files\Mozilla Firefox\plugins\npoffice.dll"
rmdir /s /q "C:\Program Files\SpeQ Mathematics\language"
rmdir /s /q "C:\Program Files\SMPlayer\docs"
rmdir /s /q "C:\Program Files\xchat\locale"
regsvr32 /u /s "C:\Program Files\Microsoft Office\OFFICE11\fpdtc.dll"
del /q "C:\Program Files\Microsoft Office\OFFICE11\fpdtc.dll"
del /q "C:\Program Files\Java\jre1.5.0_11\bin\npjava*"
del /q "C:\Program Files\Java\jre1.5.0_11\bin\npoj*"
del /q "C:\Program Files\Java\jre1.5.0_11\bin\ju*"
del /q "C:\Program Files\Java\jre1.5.0_11\lic*"
rmdir /s /q "C:\Program Files\InstallShield Installation Information"
rmdir /s /q "C:\Program Files\Common Files\InstallShield"
rmdir /s /q "C:\Program Files\Intel"
rmdir /s /q "C:\Program Files\Windows Media Player"
:: delete unused "common files"
rmdir /s /q "C:\Program Files\Common Files\DESIGNER"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\DW"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\Portal"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\Smart Tag"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\Source Engine"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\VBA"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\Web Folders"
rmdir /s /q "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions"
rmdir /s /q "C:\Program Files\Common Files\System"
rmdir /s /q "C:\Program Files\Microsoft ActiveSync"
:: lockdown boot.ini
C:\windows\system32\attrib.exe -S -H C:\boot.ini
del /q c:\boot.ini
copy G:\script\boot.ini C:\boot.ini
C:\windows\system32\attrib.exe -S -H C:\boot.ini
C:\windows\system32\attrib.exe +R C:\boot.ini
C:\windows\system32\attrib.exe +S +H C:\boot.ini
del /q C:\WINDOWS\system32\bootcfg.exe
:: lockdown win.ini
del /q c:\windows\win.ini
copy G:\script\win.ini C:\windows\
C:\windows\system32\attrib.exe -S -H C:\windows\win.ini
C:\windows\system32\attrib.exe +R C:\windows\win.ini
C:\windows\system32\attrib.exe +S +H C:\windows\win.ini
::lockdown system.ini
del /q c:\windows\system.ini
copy G:\script\system.ini C:\windows\
C:\windows\system32\attrib.exe -S -H C:\windows\system.ini
C:\windows\system32\attrib.exe +R C:\windows\system.ini
C:\windows\system32\attrib.exe +S +H C:\windows\system.ini
:: clean temp, dupe and log files
del /q C:\windows\_delis32.ini
del /q C:\.octave_hist
del /q c:\windows\control.ini
del /q c:\windows\desktop.ini
del /q c:\windows\w32dasm8.ini
del /q c:\windows\*.dat
del /q c:\windows\*.log
del /q c:\windows\*.txt
del /q /a:R C:\WINDOWS\*.tmp
del /q "C:\Documents and Settings\%username%\*.tmp"
del /q C:\WINDOWS\*.dat
del /q /a:A C:\windows\*.dat
del /q c:\windows\taskman.exe
del /q C:\windows\notepad.exe
del /q C:\WINDOWS\security\*.log
del /q C:\WINDOWS\security\*.chk
del /q C:\WINDOWS\security\*.edb
del /q C:\WINDOWS\system32\$winnt$.inf
del /q C:\WINDOWS\system32\*.sep
del /q C:\WINDOWS\system32\*.OLB
del /q C:\WINDOWS\system32\jupdate*
rmdir /s /q "C:\Documents and Settings\%username%\Application Data\Sun\Java\jdk1.6.0_07"
:: clean unused windows folders
rmdir /s /q C:\WINDOWS\$hf_mig$
rmdir /s /q C:\WINDOWS\addins
rmdir /s /q C:\WINDOWS\AppPatch
rmdir /s /q C:\WINDOWS\applog
rmdir /s /q C:\WINDOWS\Config
rmdir /s /q C:\WINDOWS\Cursors
rmdir /s /q "C:\WINDOWS\Downloaded Program Files"
rmdir /s /q "C:\WINDOWS\repair"
rmdir /s /q C:\WINDOWS\Help
rmdir /s /q C:\WINDOWS\ime
rmdir /s /q C:\WINDOWS\java
rmdir /s /q C:\WINDOWS\L2Schemas
rmdir /s /q C:\WINDOWS\LastGood
rmdir /s /q C:\WINDOWS\LastGood.Tmp
rmdir /s /q C:\WINDOWS\Logs
rmdir /s /q C:\WINDOWS\Media
rmdir /s /q C:\WINDOWS\msapps
rmdir /s /q C:\WINDOWS\mui
rmdir /s /q C:\WINDOWS\nview
rmdir /s /q C:\WINDOWS\"Offline Web Pages"
rmdir /s /q C:\WINDOWS\"PCHEALTH"
rmdir /s /q C:\WINDOWS\PeerNet
rmdir /s /q C:\WINDOWS\pss
rmdir /s /q "C:\WINDOWS\repair"
rmdir /s /q C:\WINDOWS\Resources
rmdir /s /q "C:\WINDOWS\RegisteredPackages"
rmdir /s /q C:\WINDOWS\Security\logs
rmdir /s /q C:\WINDOWS\Security\templates
rmdir /s /q C:\WINDOWS\SHELLNEW
rmdir /s /q C:\WINDOWS\Temp
rmdir /s /q C:\WINDOWS\walda
rmdir /s /q C:\WINDOWS\WBEM
rmdir /s /q C:\WINDOWS\web
rmdir /s /q C:\windows\system
rmdir /s /q C:\WINDOWS\system32\3com_dmi
rmdir /s /q C:\WINDOWS\system32\1025
rmdir /s /q C:\WINDOWS\system32\1028
rmdir /s /q C:\WINDOWS\system32\1031
rmdir /s /q C:\WINDOWS\system32\1033
rmdir /s /q C:\WINDOWS\system32\1037
rmdir /s /q C:\WINDOWS\system32\1041
rmdir /s /q C:\WINDOWS\system32\1042
rmdir /s /q C:\WINDOWS\system32\1054
rmdir /s /q C:\WINDOWS\system32\2052
rmdir /s /q C:\WINDOWS\system32\3076
rmdir /s /q C:\WINDOWS\system32\config\systemprofile
rmdir /s /q C:\WINDOWS\system32\en
rmdir /s /q C:\WINDOWS\system32\en-US
ren C:\WINDOWS\system32\en-US x
move /y C:\WINDOWS\system32\x C:\deletion\en-us
rmdir /s /q C:\WINDOWS\system32\export
del /q "C:\WINDOWS\system32\macromed\flash\flash.ocx"
rmdir /s /q C:\WINDOWS\system32\mui
rmdir /s /q C:\WINDOWS\system32\oobe
rmdir /s /q C:\WINDOWS\system32\ras
rmdir /s /q C:\WINDOWS\system32\scripting
rmdir /s /q C:\WINDOWS\system32\setup
rmdir /s /q C:\WINDOWS\system32\shellext
rmdir /s /q C:\WINDOWS\system32\usmt
rmdir /s /q C:\WINDOWS\system32\wins
:: remove language remnants
del /q C:\WINDOWS\system32\bopomofo.uce
del /q C:\WINDOWS\system32\c_037.nls
del /q C:\WINDOWS\system32\c_10000.nls
del /q C:\WINDOWS\system32\c_10006.nls
del /q C:\WINDOWS\system32\c_10007.nls
del /q C:\WINDOWS\system32\c_10010.nls
del /q C:\WINDOWS\system32\c_10017.nls
del /q C:\WINDOWS\system32\c_10029.nls
del /q C:\WINDOWS\system32\c_10079.nls
del /q C:\WINDOWS\system32\c_10081.nls
del /q C:\WINDOWS\system32\c_10082.nls
del /q C:\WINDOWS\system32\c_1026.nls
del /q C:\WINDOWS\system32\c_1258.nls
del /q C:\WINDOWS\system32\c_20127.nls
del /q C:\WINDOWS\system32\c_20261.nls
del /q C:\WINDOWS\system32\c_20866.nls
del /q C:\WINDOWS\system32\c_20905.nls
del /q C:\WINDOWS\system32\c_21866.nls
del /q C:\WINDOWS\system32\c_28592.nls
del /q C:\WINDOWS\system32\c_28593.nls
del /q C:\WINDOWS\system32\C_28594.NLS
del /q C:\WINDOWS\system32\C_28595.NLS
del /q C:\WINDOWS\system32\C_28597.NLS
del /q C:\WINDOWS\system32\c_28598.nls
del /q C:\WINDOWS\system32\c_28599.nls
del /q C:\WINDOWS\system32\c_28603.nls
del /q C:\WINDOWS\system32\c_28605.nls
del /q C:\WINDOWS\system32\c_500.nls
del /q C:\WINDOWS\system32\c_737.nls
del /q C:\WINDOWS\system32\c_775.nls
del /q C:\WINDOWS\system32\c_852.nls
del /q C:\WINDOWS\system32\c_855.nls
del /q C:\WINDOWS\system32\c_857.nls
del /q C:\WINDOWS\system32\c_860.nls
del /q C:\WINDOWS\system32\c_861.nls
del /q C:\WINDOWS\system32\c_863.nls
del /q C:\WINDOWS\system32\c_865.nls
del /q C:\WINDOWS\system32\c_866.nls
del /q C:\WINDOWS\system32\c_869.nls
del /q C:\WINDOWS\system32\c_874.nls
del /q C:\WINDOWS\system32\c_875.nls
del /q C:\WINDOWS\system32\*.uce
ren C:\WINDOWS\system32\geo.nls x
move /y C:\windows\system32\x C:\deletion\geo
ren C:\WINDOWS\system32\intl.cpl x
move /y C:\WINDOWS\system32\x C:\deletion\intl
del /q C:\WINDOWS\system32\l_except.nls
ren C:\WINDOWS\system32\lpk.dll x
move /y C:\WINDOWS\system32\x C:\deletion\lpk
del /q C:\WINDOWS\system32\mlang.dat
regsvr32 /u /s c:\windows\system32\mlang.dll
ren C:\WINDOWS\system32\mlang.dll x
move /y C:\WINDOWS\system32\x C:\deletion\mlang
del /q C:\WINDOWS\system32\*.IME
del /q C:\WINDOWS\system32\nlsdl.dll
del /q C:\WINDOWS\system32\nlsfunc.exe
del /q C:\WINDOWS\system32\normidna.nls
del /q C:\WINDOWS\system32\normnfc.nls
del /q C:\WINDOWS\system32\normnfd.nls
del /q C:\WINDOWS\system32\normnfkc.nls
del /q C:\WINDOWS\system32\normnfkd.nls
del /q C:\WINDOWS\system32\mfc42enu.dll
:: remove obscure networking stuff
del /q C:\WINDOWS\system32\6to4svc.dll
del /q C:\WINDOWS\system32\atmadm.exe
regsvr32 /u /s c:\windows\system32\atmpvcno.dll
del /q C:\WINDOWS\system32\atmpvcno.dll
regsvr32 /u /s c:\windows\system32\autodisc.dll
del /q C:\WINDOWS\system32\autodisc.dll
regsvr32 /u /s c:\windows\system32\azroles.dll
del /q C:\WINDOWS\system32\azroles.dll
del /q C:\WINDOWS\system32\browser.dll
del /q C:\WINDOWS\system32\ddeml.dll
del /q C:\WINDOWS\system32\dgrpsetu.dll
del /q C:\WINDOWS\system32\dgsetup.dll
ren C:\WINDOWS\system32\digest.dll x
move /y C:\WINDOWS\system32\x C:\deletion\digest
ren C:\WINDOWS\system32\dimsntfy.dll x
move /y C:\windows\system32\x C:\deletion\dimsntfy
del /q C:\Windows\System32\dimsroam.dll
del /q C:\WINDOWS\system32\dplaysvr.exe
del /q C:\WINDOWS\system32\dpmodemx.dll
del /q C:\WINDOWS\system32\dpnaddr.dll
regsvr32 /u /s c:\windows\system32\dpnet.dll
del /q C:\WINDOWS\system32\dpnet.dll
regsvr32 /u /s c:\windows\system32\dpnhpast.dll
del /q C:\WINDOWS\system32\dpnhpast.dll
regsvr32 /u /s c:\windows\system32\dpnhupnp.dll
del /q C:\WINDOWS\system32\dpnhupnp.dll
del /q C:\WINDOWS\system32\dpnlobby.dll
regsvr32 /u /s c:\windows\system32\dpnmodem.dll
del /q C:\WINDOWS\system32\dpnmodem.dll
del /q C:\WINDOWS\system32\dpnsvr.exe
regsvr32 /u /s c:\windows\system32\dpnwsock.dll
del /q C:\WINDOWS\system32\dpnwsock.dll
del /q C:\WINDOWS\system32\dpserial.dll
del /q C:\WINDOWS\system32\dpwsock.dll
del /q C:\WINDOWS\system32\dpwsockx.dll
regsvr32 /u /s c:\windows\system32\fde.dll
del /q C:\WINDOWS\system32\fde.dll
regsvr32 /u /s c:\windows\system32\fdeploy.dll
del /q C:\WINDOWS\system32\fdeploy.dll
del /q C:\WINDOWS\system32\fixmapi.exe
del /q C:\WINDOWS\system32\getmac.exe
regsvr32 /u /s c:\windows\system32\hlink.dll
del /q C:\WINDOWS\system32\hlink.dll
del /q C:\WINDOWS\system32\hostname.exe
regsvr32 /u /s c:\windows\system32\hnetcfg.dll
del /q C:\WINDOWS\system32\hnetcfg.dll
del /q C:\WINDOWS\system32\httpapi.dll
del /q C:\WINDOWS\system32\icmp.dll
del /q C:\WINDOWS\system32\idndl.dll
del /q C:\WINDOWS\system32\igmpagnt.dll
del /q C:\WINDOWS\system32\inetmib1.dll
ren C:\WINDOWS\system32\inetpp.dll x
move /y C:\WINDOWS\system32\x C:\deletion\inetpp
del /q C:\WINDOWS\system32\inetppui.dll
del /q C:\WINDOWS\system32\ipnathlp.dll
regsvr32 /u /s c:\windows\system32\iprtmgr.dll
C:\windows\system32\attrib.exe -A -R -H C:\WINDOWS\system32\iprtrmgr.dll
del /q C:\WINDOWS\system32\iprtrmgr.dll
del /f /q /a:RHSA C:\WINDOWS\system32\iprtmgr.dll
del /q C:\WINDOWS\system32\iprtprio.dll
del /q C:\WINDOWS\system32\iprop.dll
ren C:\WINDOWS\system32\linkinfo.dll x
move /y C:\WINDOWS\system32\x C:\deletion\linkinfo
del /q C:\WINDOWS\system32\lpq.exe
del /q C:\WINDOWS\system32\lpr*
del /q C:\WINDOWS\system32\mapistub.dll
del /q C:\WINDOWS\system32\mcdsrv32.dll
regsvr32 /u /s c:\windows\system32\mdhcp.dll
del /q C:\WINDOWS\system32\mdhcp.dll
del /q C:\WINDOWS\system32\mpnotify.exe
del /q C:\WINDOWS\system32\mprmsg.dll
del /q C:\WINDOWS\system32\mprui.dll
del /q C:\WINDOWS\system32\mqoa.tlb
del /q C:\WINDOWS\system32\mrinfo.exe
ren C:\WINDOWS\system32\msafd.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msafd
del /q C:\WINDOWS\system32\msapsspc.dll
del /q C:\WINDOWS\system32\msfeeds*
del /q C:\WINDOWS\system32\msh263.drv
regsvr32 /u /s c:\windows\system32\msimtf.dll
del /q C:\WINDOWS\system32\msimtf.dll
del /q C:\WINDOWS\system32\mssha*
del /q C:\WINDOWS\system32\msw3prt.dll
del /q C:\WINDOWS\system32\ncpa.cpl
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\ncpa.cpl.manifest"
del /q "C:\WINDOWS\system32\ncpa.cpl.manifest"
del /q C:\WINDOWS\system32\ncxpnt.dll
del /q C:\WINDOWS\system32\netid.dll
del /q C:\WINDOWS\system32\netlogon.dll
del /q C:\WINDOWS\system32\netmsg.dll
ren C:\WINDOWS\system32\netrap.dll x
move /y C:\WINDOWS\system32\x C:\deletion\netrap
del /q C:\WINDOWS\system32\netui*
regsvr32 /u /s c:\windows\system32\netcfgx.dll
ren C:\WINDOWS\system32\netcfgx.dll x
move /y C:\WINDOWS\system32\x C:\deletion\netcfgx
regsvr32 /u /s c:\windows\system32\netman.dll
ren C:\WINDOWS\system32\netman.dll x
move /y C:\WINDOWS\system32\x C:\deletion\netman
regsvr32 /u /s c:\windows\system32\netshell.dll
ren C:\WINDOWS\system32\netshell.dll x
move /y C:\WINDOWS\system32\x C:\deletion\netshell
ren C:\WINDOWS\system32\netui0.dll x
move /y C:\WINDOWS\system32\x C:\deletion\netui0
ren C:\WINDOWS\system32\netui1.dll x
move /y C:\WINDOWS\system32\x C:\deletion\netui1
del /q C:\WINDOWS\system32\ntimage.gif
del /q C:\WINDOWS\system32\ntlan*
ren C:\WINDOWS\system32\ntlanman.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ntlanman
ren C:\WINDOWS\system32\ntlsapi.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ntlsapi
ren C:\WINDOWS\system32\ntshrui.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ntshrui
del /q C:\WINDOWS\system32\ping6.exe
del /q C:\WINDOWS\system32\print.exe
del /q C:\WINDOWS\system32\routemon.exe
del /q C:\WINDOWS\system32\routetab.dll
del /q C:\WINDOWS\system32\rsvpsp.dll
del /q C:\WINDOWS\system32\rtm.dll
del /q C:\WINDOWS\system32\security.dll
regsvr32 /u /s c:\windows\system32\sendcmsg.dll
del /q C:\WINDOWS\system32\sendcmsg.dll
del /q C:\WINDOWS\system32\sens.dll
del /q C:\WINDOWS\system32\sensapi.dll
del /q C:\WINDOWS\system32\sfmapi.dll
del /q C:\WINDOWS\system32\shutdown.exe
del /q C:\WINDOWS\system32\srvsvc.dll
del /q C:\WINDOWS\system32\snmpapi.dll
del /q C:\WINDOWS\system32\tapisrv.dll
del /q C:\WINDOWS\system32\tcpmib.dll
del /q C:\WINDOWS\system32\tcpmon.dll
del /q C:\WINDOWS\system32\tcpmon.ini
ren C:\WINDOWS\system32\tcpmonui.dll x
move /y C:\WINDOWS\system32\x C:\deletion\tcpmonui
del /q C:\WINDOWS\system32\w32topl.dll
del /q C:\WINDOWS\system32\winrnr.dll
del /q C:\WINDOWS\system32\winstrm.dll
del /q C:\WINDOWS\system32\wpnpinst.exe
del /q C:\WINDOWS\system32\wshatm.dll
del /q C:\WINDOWS\system32\wkssvc.dll
del /q C:\WINDOWS\system32\wmiprop.dll
del /q C:\WINDOWS\system32\wship6.dll
del /q C:\WINDOWS\system32\wshnetbs.dll
del /q C:\WINDOWS\system32\WshRm.dll
del /q C:\WINDOWS\system32\wzcdlg.dll
del /q C:\WINDOWS\system32\xactsrv.dll
del /q C:\WINDOWS\system32\xpob2res.dll
regsvr32 /u /s c:\windows\system32\MSRDO20.DLL
del /q C:\WINDOWS\system32\MSRDO20.DLL
del /q C:\WINDOWS\system32\RDOCURS.dll
del /q C:\WINDOWS\system32\ncpa.7z
del /q C:\WINDOWS\system32\oakley.dll
del /q C:\windows\system32\streamci.dll
del /q C:\windows\system32\tapiui.dll
del /q C:\windows\system32\tspkg.dll
del /q C:\windows\system32\winipsec.dll
del /q C:\windows\system32\winshfhc.dll
del /q C:\windows\system32\win32spl.dll
regsvr32 /u /s c:\windows\system32\winhttp.DLL
del /q C:\WINDOWS\system32\winhttp.DLL
del /q C:\WINDOWS\system32\ipsec6.exe
del /q C:\WINDOWS\system32\ipv6.exe
:: remove WMP remnants
del /q C:\WINDOWS\system32\actmovie.exe
regsvr32 /u /s c:\windows\system32\amstream.dll
del /q C:\WINDOWS\system32\amstream.dll
regsvr32 /u /s c:\windows\system32\browsewm.dll
del /q C:\WINDOWS\system32\browsewm.dll
regsvr32 /u /s c:\windows\system32\dpvacm.dll
del /q C:\WINDOWS\system32\dpvacm.dll
regsvr32 /u /s c:\windows\system32\dpvoice.dll
del /q C:\WINDOWS\system32\dpvoice.dll
del /q C:\WINDOWS\system32\dpvsetup.exe
regsvr32 /u /s c:\windows\system32\dpvvox.dll
del /q C:\WINDOWS\system32\dpvvox.dll
del /q C:\WINDOWS\system32\dvdplay.exe
regsvr32 /u /s c:\windows\system32\encapi.dll
del /q C:\WINDOWS\system32\encapi.dll
del /q C:\WINDOWS\system32\iccvid.dll
del /q C:\WINDOWS\system32\iyuv_32.dll
del /q C:\WINDOWS\system32\mci*
del /q C:\WINDOWS\system32\mpeg2data.ax
del /q C:\WINDOWS\system32\mpg2splt.ax
del /q C:\WINDOWS\system32\msrle32.dll
regsvr32 /u /s c:\windows\system32\mswebdvd.dll
del /q C:\WINDOWS\system32\mswebdvd.dll
del /q C:\WINDOWS\system32\msyuv.dll
del /q C:\WINDOWS\system32\pdh.dll
regsvr32 /u /s c:\windows\system32\qasf.dll
del /q C:\WINDOWS\system32\qasf.dll
regsvr32 /u /s c:\windows\system32\qdvd.dll
del /q C:\WINDOWS\system32\qdvd.dll
regsvr32 /u /s c:\windows\system32\qedwipes.dll
del /q C:\WINDOWS\system32\qedwipes.dll
regsvr32 /u /s c:\windows\system32\sbe.dll
del /q C:\WINDOWS\system32\sbe.dll
del /q C:\WINDOWS\system32\sbeio.dll
del /q C:\WINDOWS\system32\strmfilt.dll
regsvr32 /u /s c:\windows\system32\vbicodec.ax
del /q C:\WINDOWS\system32\vbicodec.ax
regsvr32 /u /s c:\windows\system32\vbisurf.ax
del /q C:\WINDOWS\system32\vbisurf.ax
regsvr32 /u /s c:\windows\system32\wstdecod.dll
del /q C:\WINDOWS\system32\wstdecod.dll
regsvr32 /u /s c:\windows\system32\wstpager.ax
del /q C:\WINDOWS\system32\wstpager.ax
regsvr32 /u /s c:\windows\system32\wstrenderer.ax
del /q C:\WINDOWS\system32\wstrenderer.ax
del /q C:\WINDOWS\WMSysPr9.prx
del /q C:\WINDOWS\WMSysPr8.prx
:: disable ability to modify security settings
del /q C:\WINDOWS\system32\acledit.dll
del /q C:\WINDOWS\system32\advpack.dll
del /q C:\WINDOWS\system32\advpack.dll.mui
del /q C:\WINDOWS\system32\cacls.exe
del /q C:\WINDOWS\system32\dssec.dll
regsvr32 /u /s c:\windows\system32\dsuiext.dll
del /q C:\WINDOWS\system32\dsuiext.dll
ren C:\WINDOWS\system32\framedyn.dll x
move /y C:\windows\system32\x C:\deletion\framedyn
del /q C:\WINDOWS\system32\gpresult.exe
regsvr32 /u /s c:\windows\system32\gptext.dll
del /q C:\WINDOWS\system32\gptext.dll
del /q C:\WINDOWS\system32\gpupdate.exe
del /q C:\WINDOWS\system32\inetcpl.cpl
del /q C:\WINDOWS\system32\inetcplc.dll
del /q C:\WINDOWS\system32\keymgr.dll
del /q C:\WINDOWS\system32\l2gpstore.dll
del /q C:\WINDOWS\system32\localsec.dll
regsvr32 /u /s c:\windows\system32\polstore.dll
del /q C:\WINDOWS\system32\polstore.dll
regsvr32 /u /s c:\windows\system32\scecli.dll
ren C:\WINDOWS\system32\scecli.dll x
move /y C:\WINDOWS\system32\x C:\deletion\scecli
del /q C:\WINDOWS\system32\secedit.exe
regsvr32 /u /s c:\windows\system32\ipsmsnap.dll
regsvr32 /u /s c:\windows\system32\ipsecsnp.dll
ren C:\WINDOWS\system32\ipsecsnp.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ipsecsnp
ren C:\WINDOWS\system32\ipsecsvc.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ipsecsvc
ren C:\WINDOWS\system32\ipsmsnap.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ipsmsnap
::remove wmi guis
del /q c:\windows\system32\cmprops.dll
del /q c:\windows\system32\licwmi.dll
del /q c:\windows\system32\mmfutil.dll
del /q c:\windows\system32\servdeps.dll
regsvr32 /u /s c:\windows\system32\shsvcs.dll
ren c:\windows\system32\shsvcs.dll x
move /y C:\windows\system32\x C:\deletion\shsvcs
regsvr32 /u /s c:\windows\system32\wkssvc.dll
ren c:\windows\system32\wkssvc.dll x
move /y C:\windows\system32\x C:\deletion\wkssvc.dll
del /q c:\windows\system32\wmimgmt.msc
del /q c:\windows\system32\wmiscmgr.dll
:: remove IE remnants
regsvr32 /u /s c:\windows\system32\actxprxy.dll
ren C:\WINDOWS\system32\actxprxy.dll x
move /y C:\windows\system32\x C:\deletion\actxproxy
regsvr32 /u /s c:\windows\system32\cscdll.dll
ren C:\WINDOWS\system32\cscdll.dll x
move /y C:\windows\system32\x C:\deletion\cscdll
regsvr32 /u /s c:\windows\system32\dssenh.dll
del /q C:\WINDOWS\system32\dssenh.dll
del /q C:\WINDOWS\system32\icardie.dll
regsvr32 /u /s c:\windows\system32\iedkcs32.dll
del /q C:\WINDOWS\system32\iedkcs32.dll
regsvr32 /u /s c:\windows\system32\iepeers.dll
del /q C:\WINDOWS\system32\iepeers.dll
regsvr32 /u /s c:\windows\system32\iernonce.dll
del /q C:\WINDOWS\system32\iernonce.dll
regsvr32 /u /s c:\windows\system32\iesetup.dll
del /q C:\WINDOWS\system32\iesetup.dll
del /q C:\WINDOWS\system32\ieudinit.exe
regsvr32 /u /s c:\windows\system32\ieui.dll
del /q C:\WINDOWS\system32\ieui.dll
del /q C:\WINDOWS\system32\imgutil.dll
del /q C:\WINDOWS\system32\inseng.dll
regsvr32 /u /s c:\windows\system32\mshtmled.dll
del /q C:\WINDOWS\system32\msht*
regsvr32 /u /s c:\windows\system32\msident.dll
del /q C:\WINDOWS\system32\msident.dll
del /q C:\WINDOWS\system32\msidntld.dll
regsvr32 /u /s c:\windows\system32\mssign32.dll
del /q C:\WINDOWS\system32\mssign32.dll
del /q C:\WINDOWS\system32\pngfilt.dll
ren C:\WINDOWS\system32\url.dll x
move /y C:\WINDOWS\system32\x C:\deletion\url
regsvr32 /u /s c:\windows\system32\ieapfltr.dll
del /q C:\WINDOWS\system32\ieapf*
ren C:\WINDOWS\system32\shdoclc.dll x
move /y C:\WINDOWS\system32\x C:\deletion\shdoclc
C:\windows\regedit.exe /s G:\script\reg\ie.reg
:: remove unnecessary font stuff
del /q C:\WINDOWS\system32\atmfd.dll
del /q C:\WINDOWS\system32\atmlib.dll
regsvr32 /u /s c:\windows\system32\bidispl.dll
del /q C:\WINDOWS\system32\bidispl.dll
regsvr32 /u /s c:\windows\system32\panmap.dll
del /q C:\WINDOWS\system32\panmap.dll
del /q C:\WINDOWS\system32\t2embed.dll
del /q C:\WINDOWS\system32\fontview.exe
del /q C:\WINDOWS\system32\fntcache.dat
regsvr32 /u /s c:\windows\system32\fontext.dll
del /q C:\WINDOWS\system32\fontext.dll
ren C:\WINDOWS\system32\lz32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\lz32
:: disable scripting
regsvr32 /u /s c:\windows\system32\cmdlib.wsc
del /q C:\WINDOWS\system32\cmdlib.wsc
del /q C:\WINDOWS\system32\cscript.exe
regsvr32 /u /s c:\windows\system32\csseqchk.dll
del /q C:\WINDOWS\system32\csseqchk.dll
regsvr32 /u /s c:\windows\system32\dispex.dll
del /q C:\WINDOWS\system32\dispex.dll
del /q C:\WINDOWS\system32\DLLhst3g.exe
regsvr32 /u /s c:\windows\system32\dx7vb.dll
del /q C:\WINDOWS\system32\dx7vb.dll
regsvr32 /u /s c:\windows\system32\dx8vb.dll
del /q C:\WINDOWS\system32\dx8vb.dll
regsvr32 /u /s c:\windows\system32\msscript.ocx
del /q C:\WINDOWS\system32\msscript.ocx
del /q C:\WINDOWS\system32\*.vbs
regsvr32 /u /s c:\windows\system32\scrobj.dll
del /q C:\WINDOWS\system32\scrobj.dll
regsvr32 /u /s c:\windows\system32\scrrun.dll
del /q C:\WINDOWS\system32\scrrun.dll
del /q C:\WINDOWS\system32\wscript.exe
regsvr32 /u /s c:\windows\system32\wshcon.dll
del /q C:\WINDOWS\system32\wshcon.dll
regsvr32 /u /s c:\windows\system32\wshext.dll
del /q C:\WINDOWS\system32\Wshom.ocx
regsvr32 /u /s c:\windows\system32\wshext.dll
ren C:\WINDOWS\system32\wshext.dll x
move /y C:\WINDOWS\system32\x C:\deletion\wshext
del /q C:\WINDOWS\system32\winfxdocobj.exe
del /q C:\WINDOWS\system32\scriptpw.dll
regsvr32 /u /s c:\windows\system32\mscomctl.ocx
del /q C:\WINDOWS\system32\mscomctl.ocx
regsvr32 /u /s c:\windows\system32\jscript.dll
del /q C:\WINDOWS\system32\jscript.dll
:: remove obscure local administrative stuff
del /q C:\WINDOWS\system32\bootok.exe
del /q C:\WINDOWS\system32\bootvrfy.exe
del /q C:\WINDOWS\system32\comres.dll
del /q C:\WINDOWS\system32\loadperf.dll
del /q C:\WINDOWS\system32\lodctr.exe
del /q C:\WINDOWS\system32\loghours.dll
del /q C:\WINDOWS\system32\mmcperf.exe
del /q C:\windows\system32\mmcshext.dll
del /q C:\windows\system32\mmcfxcommon.dll
del /q c:\windows\system32\mmcex.dll
del /q C:\windows\system32\mmcex.resources.dll
del /q C:\windows\system32\mmcfxcommon.resources.dll
regsvr32 /u /s c:\windows\system32\mycomput.dll
del /q C:\WINDOWS\system32\mycomput.dll
del /q C:\WINDOWS\system32\neth.dll
del /q C:\WINDOWS\system32\nusrmgr.cpl
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\nwc.cpl.manifest"
del /q "C:\WINDOWS\system32\nwc.cpl.manifest"
del /q C:\WINDOWS\system32\ocmanage.dll
del /q C:\WINDOWS\system32\perfnet.dll
del /q C:\WINDOWS\system32\plustab.dll
del /q C:\WINDOWS\system32\powercfg.exe
del /q C:\WINDOWS\system32\prflbmsg.dll
del /q C:\WINDOWS\system32\pschdcnt.h
del /q C:\WINDOWS\system32\reg.exe
del /q C:\WINDOWS\system32\regedt32.exe
del /q C:\WINDOWS\system32\regwiz.exe
regsvr32 /u /s c:\windows\system32\regwizc.dll
del /q C:\WINDOWS\system32\regwizc.dll
del /q C:\WINDOWS\system32\resutils.dll
del /q C:\WINDOWS\system32\rpcns4.dll
del /q C:\WINDOWS\system32\sfc.exe
del /q C:\WINDOWS\system32\shmgrate.exe
del /q C:\WINDOWS\system32\sigverif.exe
del /q C:\WINDOWS\system32\smbinst.exe
regsvr32 /u /s c:\windows\system32\srclient.dll
ren C:\WINDOWS\system32\srclient.dll x
move /y C:\WINDOWS\system32\x C:\deletion\srclient
del /q C:\WINDOWS\system32\svcpack.dll
del /q C:\WINDOWS\system32\sysinv.dll
del /q C:\WINDOWS\system32\sysocmgr.exe
del /q C:\WINDOWS\system32\taskman.exe
del /q C:\WINDOWS\system32\unlodctr.exe
del /q C:\WINDOWS\system32\winver.exe
del /q C:\WINDOWS\system32\verclsid.exe
del /q C:\WINDOWS\system32\verifier.dll
del /q C:\WINDOWS\system32\verifier.exe
del /q C:\WINDOWS\system32\systray.exe
del /q C:\WINDOWS\system32\driverquery.exe
del /q C:\WINDOWS\system32\fsutil.exe
del /q C:\WINDOWS\system32\makecab.exe
del /q C:\WINDOWS\system32\appmgmts.dll
del /q C:\WINDOWS\system32\extrac32.exe
del /q C:\WINDOWS\system32\recover.exe
del /q C:\WINDOWS\system32\sprestrt.exe
del /q C:\WINDOWS\system32\dllhost.exe
del /q C:\WINDOWS\system32\net1.exe
del /q C:\WINDOWS\system32\compmgmt.msc
del /q C:\WINDOWS\system32\fsmgmt.msc
del /q C:\WINDOWS\system32\odbcbcp.dll
::remove debugging / error reporting
del /q C:\WINDOWS\system32\exts.dll
del /q C:\WINDOWS\system32\faultrep.dll
del /q C:\WINDOWS\system32\dbghelp.dll
:: remove obscure hardware support
del /q C:\WINDOWS\system32\eqnclass.dll
del /q C:\WINDOWS\system32\pentnt.exe
del /q C:\WINDOWS\system32\scarddlg.dll
del /q C:\WINDOWS\system32\serialui.dll
del /q C:\WINDOWS\system32\spxcoins.dll
ren C:\WINDOWS\system32\winscard.dll x
move /y C:\WINDOWS\system32\x C:\deletion\winscard
del /q C:\WINDOWS\system32\label.exe
del /q C:\WINDOWS\system32\pid.dll
del /q C:\WINDOWS\system32\pid.inf
del /q C:\WINDOWS\system32\pid.pnf
del /q C:\WINDOWS\system32\msports.dll
:battery
del /q C:\WINDOWS\system32\batt.dll
:bluetooth
del /q C:\WINDOWS\system32\bth*
del /q C:\WINDOWS\system32\btpanui.dll
del /q C:\WINDOWS\system32\fsquirt.exe
del /q C:\WINDOWS\system32\wshbth.dll
::game controllers
del /q C:\WINDOWS\system32\gcdef.dll
del /q C:\WINDOWS\system32\joy.cpl
del /q C:\WINDOWS\system32\vjoy.dll
::smart card
del /q C:\WINDOWS\system32\gpkrsrc.dll
del /q C:\WINDOWS\system32\scard*
del /q C:\WINDOWS\system32\scc*
del /q C:\WINDOWS\system32\scredir.dll
del /q C:\WINDOWS\system32\slb*
::infrared wireless? what?
del /q C:\WINDOWS\system32\irclass.dll
del /q C:\WINDOWS\system32\irprops.cpl
::modem
del /q c:\windows\system32\lights.exe
del /q c:\windows\system32\mdminst.dll
del /q c:\windows\system32\mdwmdmsp.dll
del /q c:\windows\system32\modemui.dll
del /q c:\windows\system32\serwvdrv.dll
del /q c:\windows\system32\spnike.dll
del /q c:\windows\system32\sprio*
del /q c:\windows\system32\telephon.cpl
del /q c:\windows\system32\umdmxfrm.dll
del /q c:\windows\system32\unim*
del /q c:\windows\system32\unip*.dll
del /q c:\windows\system32\usr*
del /q c:\windows\system32\vfwwdm32.dll
:: remove logon UI
del /q C:\WINDOWS\system32\logonui*
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\logonui.exe.manifest"
del /q "C:\WINDOWS\system32\logonui.exe.manifest"
:: remove leftover install stuff
del /q C:\WINDOWS\system32\pidgen.dll
del /q C:\WINDOWS\system32\prodspec.ini
del /q C:\WINDOWS\system32\osuninst.exe
del /q C:\WINDOWS\system32\setup.exe
del /q C:\WINDOWS\system32\setupdll.dll
del /q C:\WINDOWS\system32\wextract.exe
del /q C:\WINDOWS\system32\winntbbu.dll
del /q C:\WINDOWS\system32\wpabaln.exe
del /q C:\WINDOWS\system32\runonce.exe
:: remove scattered trash
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\cdplayer.exe.manifest"
del /q "C:\WINDOWS\system32\cdplayer.exe.manifest"
del /q C:\WINDOWS\system32\config.tmp
del /q C:\WINDOWS\system32\country.sys
del /q C:\WINDOWS\system32\DLL16.dll
del /q C:\WINDOWS\system32\eula.txt
del /q C:\WINDOWS\system32\hhsetup.dll
del /q C:\WINDOWS\system32\*.rat
del /q C:\WINDOWS\system32\input.dll
del /q C:\WINDOWS\system32\nlite.cmd
del /q C:\WINDOWS\system32\pautoenr.dll
del /q C:\WINDOWS\system32\*.TMP
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\sapi.cpl.manifest"
del /q "C:\WINDOWS\system32\sapi.cpl.manifest"
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\windowslogon.manifest"
del /q "C:\WINDOWS\system32\windowslogon.manifest"
C:\windows\system32\attrib.exe -A -R -H "C:\WINDOWS\system32\wuaucpl.cpl.manifest"
del /q "C:\WINDOWS\system32\wuaucpl.cpl.manifest"
del /q C:\WINDOWS\system32\write.exe
del /q C:\WINDOWS\system32\shscrap.dll
del /q C:\WINDOWS\system32\desktop.ini
del /q C:\WINDOWS\system32\localui.dll
regsvr32 /u /s c:\windows\system32\vsflex3.ocx
del /q C:\WINDOWS\system32\vsflex3.ocx
:: remove unnecessary services
C:\WINDOWS\system32\sc.exe delete appmgmt
C:\WINDOWS\system32\sc.exe delete asyncmac
del /q /f C:\WINDOWS\system32\drivers\asyncmac.sys
C:\WINDOWS\system32\sc.exe delete browser
C:\WINDOWS\system32\sc.exe delete changer
C:\WINDOWS\system32\sc.exe delete clipsrv
C:\WINDOWS\system32\sc.exe delete dhcp
C:\WINDOWS\system32\sc.exe delete diskdump
del /q /f C:\WINDOWS\system32\drivers\diskdump.sys
C:\WINDOWS\system32\sc.exe delete inetaccs
C:\WINDOWS\system32\sc.exe delete lanmanserver
C:\WINDOWS\system32\sc.exe delete lanmanworkstation
C:\WINDOWS\system32\sc.exe delete lbrtfdc
C:\WINDOWS\system32\sc.exe delete ldap
C:\WINDOWS\system32\sc.exe delete msfs
del /q /f C:\WINDOWS\system32\drivers\msfs.sys
C:\WINDOWS\system32\sc.exe delete mup
del /q /f C:\WINDOWS\system32\drivers\mup.sys
C:\WINDOWS\system32\sc.exe delete ndisuio
del /q /f C:\WINDOWS\system32\drivers\ndisuio.sys
C:\WINDOWS\system32\sc.exe delete ndproxy
C:\WINDOWS\system32\sc.exe delete netdde
C:\WINDOWS\system32\sc.exe delete netddedsdm
C:\WINDOWS\system32\sc.exe delete netbios
del /q /f C:\WINDOWS\system32\drivers\netbios.sys
C:\WINDOWS\system32\sc.exe delete netbt
del /q /f C:\WINDOWS\system32\drivers\netbt.sys
C:\WINDOWS\system32\sc.exe delete ntlmssp
C:\WINDOWS\system32\sc.exe delete netman
C:\WINDOWS\system32\sc.exe delete nvsvc
C:\WINDOWS\system32\sc.exe delete null
C:\WINDOWS\system32\sc.exe delete pcidump
C:\WINDOWS\system32\sc.exe delete rasman
C:\WINDOWS\system32\sc.exe delete samss
C:\WINDOWS\system32\sc.exe delete sharedaccess
C:\WINDOWS\system32\sc.exe delete secdrv
del /q /f C:\WINDOWS\system32\drivers\secdrv.sys
C:\WINDOWS\system32\sc.exe delete simbad
C:\WINDOWS\system32\sc.exe delete srv
del /q /f C:\WINDOWS\system32\drivers\srv.sys
C:\WINDOWS\system32\sc.exe delete tapisrv
C:\WINDOWS\system32\sc.exe delete trkwks
C:\WINDOWS\system32\sc.exe delete ose
C:\WINDOWS\system32\sc.exe delete aspnet_state
C:\WINDOWS\system32\sc.exe delete asp.net
C:\WINDOWS\system32\sc.exe delete asp.net_2.0.50727
C:\WINDOWS\system32\sc.exe delete clr_optimization_v2.0.50727_32
C:\WINDOWS\system32\sc.exe delete tapisrv
C:\WINDOWS\system32\sc.exe delete ldap
C:\WINDOWS\system32\sc.exe delete rasman
C:\WINDOWS\system32\sc.exe delete sharedaccess
C:\WINDOWS\system32\sc.exe delete clipsrv
C:\WINDOWS\system32\sc.exe delete stisvc
C:\WINDOWS\system32\sc.exe delete acpiec
C:\WINDOWS\system32\sc.exe delete SCardSvr
C:\WINDOWS\system32\sc.exe delete Themes
C:\WINDOWS\system32\sc.exe delete acpiec
del /q /f C:\WINDOWS\system32\drivers\acpiec.sys
C:\WINDOWS\system32\sc.exe delete mf
del /q /f C:\WINDOWS\system32\drivers\mf.sys
C:\WINDOWS\system32\sc.exe delete mrxsmb
del /q /f C:\WINDOWS\system32\drivers\mrxsmb.sys
C:\WINDOWS\system32\sc.exe delete ptilink
del /q /f C:\WINDOWS\system32\drivers\ptilink.sys
C:\WINDOWS\system32\sc.exe delete rawwan
del /q /f C:\WINDOWS\system32\drivers\rawwan.sys
C:\WINDOWS\system32\sc.exe delete rdbss
del /q /f C:\WINDOWS\system32\drivers\rdbss.sys
C:\WINDOWS\system32\sc.exe delete rmcast
del /q /f C:\WINDOWS\system32\drivers\rmcast.sys
C:\WINDOWS\system32\sc.exe delete rndismp
del /q /f C:\WINDOWS\system32\drivers\rndismp.sys
C:\WINDOWS\system32\sc.exe delete ws2ifsl
del /q /f C:\WINDOWS\system32\drivers\ws2ifsl.sys
C:\WINDOWS\system32\sc.exe delete mskssrv
del /q /f C:\WINDOWS\system32\drivers\mskssrv.sys
C:\WINDOWS\system32\sc.exe delete mspclock
del /q /f C:\WINDOWS\system32\drivers\mspclock.sys
C:\WINDOWS\system32\sc.exe delete mspqm
del /q /f C:\WINDOWS\system32\drivers\mspqm.sys
C:\WINDOWS\system32\sc.exe delete WmdmPmsN
C:\WINDOWS\system32\sc.exe delete UMWdf
C:\WINDOWS\system32\sc.exe delete javaquickstarterservice
C:\WINDOWS\system32\sc.exe delete rsvp
C:\WINDOWS\system32\sc.exe config spooler start= auto
C:\WINDOWS\system32\sc.exe delete usb8023
del /q /f C:\WINDOWS\system32\drivers\usb8023.sys
C:\WINDOWS\system32\sc.exe delete wstcodec
del /q /f C:\WINDOWS\system32\drivers\wstcodec.sys
C:\WINDOWS\system32\sc.exe delete nabtsfec
del /q /f C:\WINDOWS\system32\drivers\nabtsfec.sys
:: construct start menu
copy /y "G:\script\start menu\*.*" "C:\documents and settings\%username%\Start menu\"
rmdir /s /q "C:\documents and settings\%username%\Start menu\Programs\7-zip"
rmdir /s /q "C:\documents and settings\%username%\Start menu\Programs\Accessories"
C:\windows\system32\xcopy.exe /E /y "G:\script\start menu" "C:\documents and settings\%username%\Start Menu"
:: desktop
C:\windows\system32\xcopy.exe /E /y "G:\script\desktop" "C:\documents and settings\%username%\Desktop\"
:: put mydocs.dll back
move /y C:\mydocs.dll C:\WINDOWS\system32\mydocs.dll
regsvr32 /s c:\windows\system32\mydocs.dll
:: remove OLE components
regsvr32 /u /s c:\windows\system32\olecli.dll
del /q C:\WINDOWS\system32\olecli.dll
regsvr32 /u /s c:\windows\system32\olecli32.dll
ren C:\WINDOWS\system32\olecli32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\olecli32
regsvr32 /u /s c:\windows\system32\olecnv32.dll
ren C:\WINDOWS\system32\olecnv32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\olecnv32
regsvr32 /u /s c:\windows\system32\oleprn.dll
del /q C:\WINDOWS\system32\oleprn.dll
regsvr32 /u /s c:\windows\system32\olesvr.dll
del /q C:\WINDOWS\system32\olesvr.dll
regsvr32 /u /s c:\windows\system32\olesvr32.dll
ren C:\WINDOWS\system32\olesvr32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\olesvr32
regsvr32 /u /s c:\windows\system32\olethk32.dll
ren C:\WINDOWS\system32\olethk32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\olethk32
C:\windows\regedit.exe /s G:\script\reg\ole.reg
::remove unused libraries
regsvr32 /u /s c:\windows\system32\comcat.dll
ren C:\WINDOWS\system32\comcat.dll x
move /y C:\WINDOWS\system32\x C:\deletion\comcat
regsvr32 /u /s c:\windows\system32\ctl3d32.dll
ren C:\WINDOWS\system32\ctl3d32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\ctl3d32
regsvr32 /u /s c:\windows\system32\mfc40.dll
ren C:\WINDOWS\system32\mfc40.dll x
move /y C:\WINDOWS\system32\x C:\deletion\mfc40
regsvr32 /u /s c:\windows\system32\mcf40u.dll
ren C:\WINDOWS\system32\mfc40u.dll x
move /y C:\WINDOWS\system32\x C:\deletion\mfc40u
regsvr32 /u /s c:\windows\system32\msctf.dll
ren C:\WINDOWS\system32\msctf.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msctf
regsvr32 /u /s c:\windows\system32\msvbvm50.dll
ren C:\WINDOWS\system32\msvbvm50.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msvbvm50
regsvr32 /u /s c:\windows\system32\msvcp50.dll
ren C:\WINDOWS\system32\msvcp50.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msvcp50
regsvr32 /u /s c:\windows\system32\msvcp71.dll
ren C:\WINDOWS\system32\msvcp71.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msvcp71
regsvr32 /u /s c:\windows\system32\msvcrt20.dll
ren C:\WINDOWS\system32\msvcrt20.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msvcrt20
regsvr32 /u /s c:\windows\system32\msvcrt40.dll
ren C:\WINDOWS\system32\msvcrt40.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msvcrt40
regsvr32 /u /s c:\windows\system32\msls31.dll
ren C:\WINDOWS\system32\msls31.dll x
move /y C:\WINDOWS\system32\x C:\deletion\msls31
::remove wordpad
rmdir /s /q "C:\WINDOWS NT"
regsvr32 /u /s c:\windows\system32\msftedit.dll
del /q C:\WINDOWS\system32\msftedit.dll
;remove some icon files
regsvr32 /u /s c:\windows\system32\moricons.dll
del /q C:\WINDOWS\system32\moricons.dll
regsvr32 /u /s c:\windows\system32\pifmgr.dll
del /q C:\WINDOWS\system32\pifmgr.dll
:: disable network connections folder
ren C:\WINDOWS\system32\dhcpcsvc.dll x
move /y C:\windows\system32\x C:\deletion\dhcpcsvc
ren C:\WINDOWS\system32\dot3api.dll x
move /y C:\windows\system32\x C:\deletion\dot3api
ren C:\WINDOWS\system32\dot3dlg.dll x
move /y C:\windows\system32\x C:\deletion\dot3dlg
regsvr32 /u /s c:\windows\system32\eapolqec.dll
ren C:\WINDOWS\system32\eapolqec.dll x
move /y C:\windows\system32\x C:\deletion\eapolqec
ren C:\WINDOWS\system32\eappcfg.dll x
move /y C:\windows\system32\x C:\deletion\eappcfg
ren C:\WINDOWS\system32\eappprxy.dll x
move /y C:\windows\system32\x C:\deletion\eappprxy
regsvr32 /u /s c:\windows\system32\hnetcfg.dll
ren C:\WINDOWS\system32\hnetcfg.dll x
move /y C:\windows\system32\x C:\deletion\hnetcfg
ren C:\WINDOWS\system32\mprapi.dll x
move /y C:\WINDOWS\system32\x C:\deletion\mprapi
ren C:\WINDOWS\system32\onex.dll x
move /y C:\WINDOWS\system32\x C:\deletion\onex
regsvr32 /u /s c:\windows\system32\qutil.dll
ren C:\WINDOWS\system32\qutil.dll x
move /y C:\WINDOWS\system32\x C:\deletion\qutil
ren C:\WINDOWS\system32\rasapi32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\rasapi32
ren C:\WINDOWS\system32\rasdlg.dll x
move /y C:\WINDOWS\system32\x C:\deletion\rasdlg
ren C:\WINDOWS\system32\rasman.dll x
move /y C:\WINDOWS\system32\x C:\deletion\rasman
regsvr32 /u /s c:\windows\system32\rasqec.dll
ren C:\WINDOWS\system32\rasqec.dll x
move /y C:\WINDOWS\system32\x C:\deletion\rasqec
ren C:\WINDOWS\system32\rassapi.dll x
move /y C:\WINDOWS\system32\x C:\deletion\rassapi
ren C:\WINDOWS\system32\rtutils.dll x
move /y C:\WINDOWS\system32\x C:\deletion\rtutils
ren C:\WINDOWS\system32\schannel.dll x
move /y C:\WINDOWS\system32\x C:\deletion\schannel
ren C:\WINDOWS\system32\tapi32.dll x
move /y C:\WINDOWS\system32\x C:\deletion\tapi32
ren C:\WINDOWS\system32\wdigest.dll x
move /y C:\WINDOWS\system32\x C:\deletion\wdigest
ren C:\WINDOWS\system32\wzcsapi.dll x
move /y C:\WINDOWS\system32\x C:\deletion\wzcsapi
ren C:\WINDOWS\system32\wzcsvc.dll x
move /y C:\WINDOWS\system32\x C:\deletion\wzcsvc
:: remove windows update
del /q C:\WINDOWS\system32\cdm.dll
del /q C:\WINDOWS\system32\iuengine.dll
regsvr32 /u /s c:\windows\system32\licdll.dll
del /q C:\WINDOWS\system32\licdll.dll
del /q C:\WINDOWS\system32\msidle.dll
del /q C:\WINDOWS\system32\MSPATCHA.DLL
del /q C:\WINDOWS\system32\spmsg.dll
del /q C:\WINDOWS\system32\wupdmgr.exe
:: remove certificate/encryption/cryptography/ANTIPIRACY stuff
regsvr32 /u /s c:\windows\system32\capesnpn.dll
del /q C:\WINDOWS\system32\capesnpn.dll
regsvr32 /u /s c:\windows\system32\cryptdlg.dll
del /q C:\WINDOWS\system32\cryptdlg.dll
regsvr32 /u /s c:\windows\system32\cryptext.dll
del /q C:\WINDOWS\system32\cryptext.dll
regsvr32 /u /s c:\windows\system32\rsfsaps.dll
del /q C:\WINDOWS\system32\rsfsaps.dll
del /q C:\WINDOWS\system32\cryptnet.dll
del /q C:\WINDOWS\system32\gpkcsp.dll
::sysinternals stuff
del /q C:\WINDOWS\system32\procmon.exe
C:\windows\regedit.exe /s G:\script\reg\sysint.reg
::remove other scary stuff that appeared in the process of installing stuff
regsvr32 /u /s C:\windows\system32\blackbox.dll
del /q C:\windows\system32\blackbox.dll
regsvr32 /u /s C:\windows\system32\cnbjmon.dll
del /q C:\windows\system32\cnbjmon.dll
del /q C:\windows\jupdate*
regsvr32 /u /s C:\windows\system32\pjlmon.dll
ren C:\WINDOWS\system32\pjlmon.dll x
move /y C:\WINDOWS\system32\x C:\deletion\pjlmon
regsvr32 /u /s C:\windows\system32\cewmdm.dll
del /q C:\windows\system32\cewmdm.dll
del /q C:\windows\system32\decdnet.dll
regsvr32 /u /s C:\windows\system32\drmclien.dll
del /q C:\windows\system32\drmclien.dll
regsvr32 /u /s C:\windows\system32\drmstor.dll
del /q C:\windows\system32\drmstor.dll
regsvr32 /u /s C:\windows\system32\drmv2clt.dll
del /q C:\windows\system32\drmv2clt.dll
del /q C:\windows\system32\encdnet.dll
regsvr32 /u /s C:\windows\system32\laprxy.dll
del /q C:\windows\system32\laprxy.dll
del /q C:\windows\system32\logagent.exe
del /q C:\windows\system32\lsprst7.tgz
del /q C:\windows\system32\mp4*
regsvr32 /u /s C:\windows\system32\mpg4dmod.dll
del /q C:\windows\system32\mpg4dmod.dll
regsvr32 /u /s C:\windows\system32\msnetobj.dll
del /q C:\windows\system32\msnetobj.dll
regsvr32 /u /s C:\windows\system32\MsPMSNSv.dll
del /q C:\windows\system32\MsPMSNSv.dll
regsvr32 /u /s C:\windows\system32\MsPMSP.dll
del /q C:\windows\system32\MsPMSP.dll
del /q C:\windows\system32\MSSCP.dll
regsvr32 /u /s C:\windows\system32\MSWMDM.DLL
del /q C:\windows\system32\MSWMDM.DLL
del /q C:\windows\system32\pn*
del /q C:\windows\system32\ra*
del /q C:\windows\system32\rmbe3260.dll
del /q C:\windows\system32\ssprs.tgz
del /q C:\windows\system32\sysprs7.tgz
del /q C:\windows\system32\uwdf.exe
del /q C:\windows\system32\wdfapi.dll
del /q C:\windows\system32\wdfmgr.exe
regsvr32 /u /s C:\windows\system32\wmadmod.dll
del /q C:\windows\system32\wmadmod.dll
regsvr32 /u /s C:\windows\system32\wmadmoe.dll
del /q C:\windows\system32\wmadmoe.dll
regsvr32 /u /s C:\windows\system32\WMDMLOG.dll
del /q C:\windows\system32\WMDMLOG.dll
regsvr32 /u /s C:\windows\system32\WMDMPS.dll
del /q C:\windows\system32\WMDMPS.dll
regsvr32 /u /s C:\windows\system32\WMDRMdev.dll
del /q C:\windows\system32\WMDRMdev.dll
regsvr32 /u /s C:\windows\system32\WMDRMNet.dll
del /q C:\windows\system32\WMDRMNet.dll
regsvr32 /u /s C:\windows\system32\wmidx2.ocx
del /q C:\windows\system32\wmidx2.ocx
regsvr32 /u /s C:\windows\system32\wmidx.dll
del /q C:\windows\system32\wmidx.dll
regsvr32 /u /s C:\windows\system32\wmnetmgr.dll
del /q C:\windows\system32\wmnetmgr.dll
regsvr32 /u /s C:\windows\system32\wmsdmod.dll
del /q C:\windows\system32\wmsdmod.dll
regsvr32 /u /s C:\windows\system32\wmsdmoe2.dll
del /q C:\windows\system32\wmsdmoe2.dll
regsvr32 /u /s C:\windows\system32\wmsdmoe.dll
del /q C:\windows\system32\wmsdmoe.dll
regsvr32 /u /s C:\windows\system32\wmspdmod.dll
del /q C:\windows\system32\wmspdmod.dll
regsvr32 /u /s C:\windows\system32\wmspdmoe.dll
del /q C:\windows\system32\wmspdmoe.dll
regsvr32 /u /s C:\windows\system32\wmv8dmod.dll
del /q C:\windows\system32\wmv8dmod.dll
regsvr32 /u /s C:\windows\system32\wmv8dmoe.dll
del /q C:\windows\system32\wmv8dmoe.dll
regsvr32 /u /s C:\windows\system32\wmvadvd.dll
del /q C:\windows\system32\wmvadvd.dll
regsvr32 /u /s C:\windows\system32\WMVADVE.DLL
del /q C:\windows\system32\WMVADVE.DLL
regsvr32 /u /s C:\windows\system32\wmvcore2.dll
regsvr32 /u /s C:\windows\system32\wmvdmod.dll
del /q C:\windows\system32\wmvdmod.dll
regsvr32 /u /s C:\windows\system32\wmvdmoe2.dll
del /q C:\windows\system32\wmvdmoe2.dll
regsvr32 /u /s C:\windows\system32\wmvdmoe.dll
del /q C:\windows\system32\wmvdmoe.dll
regsvr32 /u /s C:\windows\system32\wpd_ci.dll
del /q C:\windows\system32\wpd_ci.dll
regsvr32 /u /s C:\windows\system32\wpdconns.dll
del /q C:\windows\system32\wpdconns.dll
regsvr32 /u /s C:\windows\system32\wpdmtp.dll
del /q C:\windows\system32\wpdmtp.dll
regsvr32 /u /s C:\windows\system32\wpdmtpdr.dll
del /q C:\windows\system32\wpdmtpdr.dll
regsvr32 /u /s C:\windows\system32\wpdmtpus.dll
del /q C:\windows\system32\wpdmtpus.dll
regsvr32 /u /s C:\windows\system32\wpdsp.dll
del /q C:\windows\system32\wpdsp.dll
regsvr32 /u /s C:\windows\system32\wpdtrace.dll
del /q C:\windows\system32\wpdtrace.dll
regsvr32 /u /s C:\windows\system32\nvwss.dll
del /q C:\windows\system32\nvwss.dll
regsvr32 /u /s C:\windows\system32\nvmobls.dll
del /q C:\windows\system32\nvmobls.dll
regsvr32 /u /s C:\windows\system32\nvgames.dll
del /q C:\windows\system32\nvgames.dll
::remove qos files
del /q c:\windows\system32\pschdprf*
del /q c:\windows\system32\qos*
del /q c:\windows\system32\rsvp*
::settings for various programs
copy /y G:\script\files\alleycode.ini "C:\Program Files\Alleycode\alleycode.ini"
C:\windows\regedit.exe /s G:\script\reg\alleycode.reg
copy /y G:\script\files\Calc.lnk "C:\Windows\System32\Calc.lnk"
copy /y G:\script\files\Calcute.dat "C:\Program Files\Calcute\calcute.dat"
C:\windows\regedit.exe /s G:\script\reg\camstudio.reg
copy /y G:\script\files\CamStudio.ini "C:\Program Files\Camstudio\CamStudio.ini"
rmdir /s /q "C:\Documents and Settings\.Virtualbox"
copy /y G:\script\files\razorlame.ini "C:\Program Files\Razorlame\razorlame.ini"
del /s /q "C:\Program Files\uTorrent\uTorrent.exe"
copy /y G:\script\files\uTorrent.exe "C:\Program Files\uTorrent\uTorrent.exe"
C:\windows\regedit.exe /s G:\script\reg\utorrent.reg
copy /y G:\script\files\vazmod.ini "C:\Program Files\VAZ Modular\vazmod.ini"
copy /y G:\script\files\firefox\en-GB.aff "C:\Program Files\Mozilla Firefox\dictionaries\en-GB.aff"
copy /y G:\script\files\firefox\en-GB.dic "C:\Program Files\Mozilla Firefox\dictionaries\en-GB.dic"
rmdir /s /q "C:\Documents and Settings\%username%\Application Data\Mozilla"
C:\windows\System32\xcopy.exe /y /e /h /k G:\script\files\prefs "C:\Documents and Settings\%username%\Application Data"
C:\windows\System32\xcopy.exe /y /e /h /k G:\script\files\prefs-all "C:\Documents and Settings\All Users\Application Data"
C:\windows\System32\xcopy.exe /y /e /h /k G:\script\files\izotope "C:\Documents and Settings\jessica\My Documents\iZotope Ozone Presets"
C:\windows\System32\xcopy.exe /y /e /h /k G:\script\files\pod "C:\Documents and Settings\jessica\My Documents\Line 6"
C:\windows\System32\xcopy.exe /y /e /h /k G:\script\files\rig "C:\Program Files\Native Instruments\Guitar Rig 2\Preset Banks"
C:\windows\regedit.exe /s G:\script\reg\7zip.reg
C:\windows\regedit.exe /s G:\script\reg\arturia.reg
C:\windows\regedit.exe /s G:\script\reg\audiomulch.reg
C:\windows\regedit.exe /s G:\script\reg\coolpro.reg
C:\windows\regedit.exe /s G:\script\reg\cubase.reg
C:\windows\regedit.exe /s G:\script\reg\dr008.reg
C:\windows\regedit.exe /s G:\script\reg\foobar.reg
C:\windows\regedit.exe /s G:\script\reg\foxit.reg
C:\windows\regedit.exe /s G:\script\reg\fruity.reg
C:\windows\regedit.exe /s G:\script\reg\futurix.reg
C:\windows\regedit.exe /s G:\script\reg\goldwave.reg
C:\windows\regedit.exe /s G:\script\reg\graph.reg
C:\windows\regedit.exe /s G:\script\reg\hijack.reg
C:\windows\regedit.exe /s G:\script\reg\imgburn.reg
C:\windows\regedit.exe /s G:\script\reg\java.reg
C:\windows\regedit.exe /s G:\script\reg\native.reg
C:\windows\regedit.exe /s G:\script\reg\office.reg
C:\windows\regedit.exe /s G:\script\reg\ppoint.reg
C:\windows\regedit.exe /s G:\script\reg\smplayer.reg
C:\windows\regedit.exe /s G:\script\reg\vcd.reg
C:\windows\regedit.exe /s G:\script\reg\winamp.reg
:: disable dcom
C:\windows\regedit.exe /s G:\script\reg\dcom.reg
:: delete default user
C:\windows\regedit.exe /s G:\script\reg\default.reg
::remove plug and play
::del /q C:\WINDOWS\system32\catroot\*.tmp
::del /q C:\WINDOWS\system32\catroot2\*.log
::del /q C:\WINDOWS\system32\catroot2\*.txt
::del /q C:\WINDOWS\system32\catroot2\*.chk
::del /q C:\WINDOWS\system32\catroot2\*.edb
::del /q C:\WINDOWS\inf\*.pnf
::rmdir /s /q C:\WINDOWS\inf\IEM
::del /q C:\WINDOWS\inf\*.adm
::del /q C:\WINDOWS\inf\infcache.1
::rmdir /s /q C:\WINDOWS\inf
::rmdir /s /q "C:\WINDOWS\Driver Cache"
::rmdir /s /q C:\WINDOWS\system32\dllcache
::rmdir /s /q C:\WINDOWS\system32\drivers\disdn
::rmdir /s /q C:\WINDOWS\system32\DRVSTORE
::regsvr32 /u /s c:\windows\system32\softpub.dll
::del /q C:\WINDOWS\system32\softpub.dll
::regsvr32 /u /s c:\windows\system32\initpki.dll
::del /q C:\WINDOWS\system32\initpki.dll
::remove WIA
del /q C:\WINDOWS\twunk_32.exe
del /q C:\WINDOWS\twain_32.dll
rmdir /s /q "C:\WINDOWS\twain_32"
regsvr32 /u /s c:\windows\system32\camocx.dll
ren C:\WINDOWS\system32\camocx.dll x
move /y C:\WINDOWS\system32\x C:\deletion\camocx
regsvr32 /u /s c:\windows\system32\sti.dll
ren C:\WINDOWS\system32\sti.dll x
move /y C:\WINDOWS\system32\x C:\deletion\sti
regsvr32 /u /s c:\windows\system32\sti.dll_ci
ren C:\WINDOWS\system32\sti_ci.dll x
move /y C:\WINDOWS\system32\x C:\deletion\sti_ci
del /q C:\WINDOWS\system32\stimon.exe
:: delete 16-bit and legacy files
del /q C:\autoexec.bat
del /q C:\config.sys
del /q /a:ASHR C:\IO.sys
del /q /a:ASHR C:\MSDOS.SYS
rmdir /s /q C:\windows\system
del /q C:\windows\explorer.scf
del /q /a:A C:\WINDOWS\_default.pif
del /q C:\WINDOWS\system32\ansi.sys
del /q C:\WINDOWS\system32\append.exe
del /q C:\WINDOWS\system32\autofmt.exe
del /q C:\WINDOWS\system32\autolfn.exe
del /q C:\WINDOWS\system32\autoconv.exe
del /q C:\WINDOWS\system32\avicap.dll
del /q C:\WINDOWS\system32\bios1.rom
del /q C:\WINDOWS\system32\bios4.rom
del /q C:\WINDOWS\system32\compact.exe
del /q C:\WINDOWS\system32\convert.exe
C:\windows\system32\attrib.exe -A C:\WINDOWS\system32\ctl3dv2.dll
del /q C:\WINDOWS\system32\ctl3dv2.dll
del /q C:\WINDOWS\system32\diskcomp.com
del /q C:\WINDOWS\system32\diskcopy.com
ren C:\WINDOWS\system32\diskcopy.dll x
move /y C:\windows\system32\x C:\deletion\diskcopy
del /q C:\WINDOWS\system32\v7vga.rom
del /q C:\WINDOWS\system32\exe2bin.exe
del /q C:\WINDOWS\system32\expand.exe
del /q C:\WINDOWS\system32\fastopen.exe
del /q C:\WINDOWS\system32\forcedos.exe
del /q C:\WINDOWS\system32\graftabl.com
del /q C:\WINDOWS\system32\graphics.com
del /q C:\WINDOWS\system32\graphics.pro
del /q C:\WINDOWS\system32\grpconv.exe
del /q C:\WINDOWS\system32\kb16.com
del /q C:\WINDOWS\system32\key01.sys
del /q C:\WINDOWS\system32\keyboard.sys
del /q C:\WINDOWS\system32\lanman.drv
del /q C:\WINDOWS\system32\loadfix.com
del /q C:\WINDOWS\system32\mem.exe
del /q C:\WINDOWS\system32\mf3216.dll
del /q C:\WINDOWS\system32\mmtask.tsk
del /q C:\WINDOWS\system32\modeX.dll
del /q C:\WINDOWS\system32\mountvol.exe
del /q C:\WINDOWS\system32\mscdexnt.exe
del /q C:\WINDOWS\system32\mtstocom.exe
del /q C:\WINDOWS\system32\netapi.dll
del /q C:\WINDOWS\system32\pmspl.dll
del /q C:\WINDOWS\system32\progman.exe
del /q C:\WINDOWS\system32\redir.exe
del /q C:\WINDOWS\system32\setver.exe
del /q C:\WINDOWS\system32\share.exe
del /q C:\WINDOWS\system32\sysedit.exe
del /q C:\WINDOWS\system32\termcap
del /q C:\WINDOWS\system32\timer.drv
del /q C:\WINDOWS\system32\traffic.dll
del /q C:\WINDOWS\system32\tsbyuv.dll
del /q C:\WINDOWS\system32\typelib.dll
del /q C:\WINDOWS\system32\tzchange.exe
del /q C:\WINDOWS\system32\ufat.dll
del /q C:\WINDOWS\system32\vcdex.dll
del /q C:\WINDOWS\system32\vdmredir.dll
del /q C:\WINDOWS\system32\vga64k.dll
del /q C:\WINDOWS\system32\vga256.dll
ren C:\WINDOWS\system32\vga.dll x
move /y C:\WINDOWS\system32\x C:\deletion\vga
del /q C:\WINDOWS\system32\wdl.trm
del /q C:\WINDOWS\system32\wifeman.dll
del /q C:\WINDOWS\system32\winbrand.dll
del /q C:\WINDOWS\system32\winnls.dll
del /q C:\WINDOWS\system32\winsock.dll
del /q C:\WINDOWS\system32\winspool.exe
del /q C:\WINDOWS\system32\wowdeb.exe
del /q C:\WINDOWS\system32\mmt*
del /q C:\WINDOWS\system32\msvideo.dll
del /q C:\WINDOWS\system32\cmos.ram
del /q C:\WINDOWS\system32\stdole32.tlb
del /q C:\WINDOWS\system32\stdole.tlb
del /q C:\WINDOWS\system32\win.com
del /q C:\WINDOWS\system32\msvideo.dll
del /q C:\WINDOWS\system32\avifile.dll
del /q C:\WINDOWS\system32\msacm.dll
del /q C:\WINDOWS\system32\winoldap.mod
del /q C:\WINDOWS\twain.dll
del /q C:\WINDOWS\twunk_16.exe
del /q C:\WINDOWS\vga64k.dll
del /q C:\WINDOWS\vga256.dll
del /q C:\WINDOWS\vga.dll
del /q C:\WINDOWS\vga.sys
::delete spyware
del /q c:\windows\system32\devldr32.exe
del /q c:\windows\system32\doskey.exe
:: clean registry
C:\windows\regedit.exe /s G:\script\reg\startup.reg
C:\windows\regedit.exe /s G:\script\reg\fileextensions.reg
C:\windows\regedit.exe /s G:\script\reg\deadkeys.reg
C:\windows\regedit.exe /s G:\script\reg\ie.reg
C:\windows\regedit.exe /s G:\script\reg\shell.reg
C:\windows\regedit.exe /s G:\script\reg\windows.reg
C:\windows\regedit.exe /s G:\script\reg\postinstall.reg
::re-register
regsvr32 /s c:\windows\system32\qedit.dll
regsvr32 /s c:\windows\system32\qcap.dll
regsvr32 /s c:\windows\system32\qdv.dll
regsvr32 /s c:\windows\system32\quartz.dll
::blindly rip out wbem folder
rmdir /s /q c:\windows\system32\wbem
:: request reboot
C:\windows\system32\notepad.exe G:\script\reboot.txt
copy G:\script\last.cmd "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\last.cmd"
del /q "C:\Documents and Settings\%username%\Start Menu\Programs\Startup\third.cmd"