PC cleanup before sysprep

Hi, just wondered if anyone had created their own custom batch script to cleanup a pc (internet files, desktop etc) before syspreping?

here is an example of mine, just wondered if there was something I should add/change etc, thanks

del /F /S /Q "%systemroot%\temp\*.*"
del /F /S /Q "%systemroot%\Prefetch\*.*"

set Temp=C:\Users\%username%\AppData\Local\Temp

del /q /S /f "%Temp%"
rd /s /q "%Temp%"

set History=C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\History

del /q /s /f "%History%"
rd /s /q "%History%"

set IETemp=C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\Tempor~1

del /q /s /f "%IETemp%"
rd /s /q "%IETemp%"

set Cookies=C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Cookies

del /q /s /f "%Cookies%"
rd /s /q "%Cookies%"

del /F /S /Q "%homepath%\recent\*.*"
del /F /S /Q "%userprofile%\Desktop\*.*"
del /F /S /Q "C:\Users\Default\Desktop\*.*"
del /F /S /Q "C:\Users\Public\Desktop\*.*"

rd /s C:\$Recycle.Bin
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam LeinssServer SpecialistCommented:
I just run CCleaner: http://www.piriform.com/ccleaner

Why re-invent the wheel?
kwatt562Author Commented:
Don't really want it on the PC, as its for corporate, but thanks
Adam LeinssServer SpecialistCommented:
There are portable versions of CCleaner...no need to install it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.