have you tried deleting the folders that are in the temp inet folder?
You have to remember that folder is a special folder in windows. I believe there are usually 4 folders inside that folder.. try deleting them instead... unless you're looking for specific files.
If you're on a box with NTFS (hence the permissions problems) you can look into plugging into ADSI to check NTFS permissions for that user before plunging into the directory.
Hmmm is this on a AD domain?
I'm thinkin the ADSI objects have to be installed on a normal box.
I use it on our domain, but I run the script from the server so I don't have to worry about the client.
Welcome to TechIMO