Terminal Server - Delete temp internet files

We have a 2003 terminal server in our domain and I would like to delete all the user's temporary internet files upon their logoff. I Would prefer using a script rather than using a GPO since it would use adm templates, but I'm not 100% sure if a script would be better?
Does someone have a script for this?
Where would the script reside, netlogon folder of the DC?
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.

B HCommented:
there is a setting for this,
start > programs > administrative tools > terminal server configuration

on the left, settings, empty temp files - set that for yes

you could add a simple batch file to the 'logoff' script area in the group policy > user > security > scripts > logoff

cd %userprofile%
cd locals~1
rd tempor~1 /s /y
tolinromeAuthor Commented:
I'm not sure if that setting is for all users; I have it enabled already but temp internet files keep growing.

there's no gpo for this?
tolinromeAuthor Commented:

What does the /s /y switches mean?
B HCommented:
there is a group policy for it, under windows > terminal server ... it's the same setting i led you to above, just in the GPO instead of the application

rd means remove directory
tempor~1 is shorthand (it works) for "temporary internet files"
/s means go and do every folder under "temporary internet files"
/y means do it and dont ask me to press (Y)es

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 Server 2003

From novice to tech pro — start learning today.