We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Windows TEMP folder is deleted / recreated once per week

mlmslex asked
Medium Priority
Last Modified: 2012-05-11
Once per week, ALMOST always on Sat mornings between 8 - 10a, the RWW site goes down - a page comes up which says to contact the system administrator.  I have determined through LOTS of troubleshooting that the C:\Windows\Temp folder is either being replaced or modified such that the only permissions on it are "Administrator" user with less than full control.  The workaround so far has been to reset the permissions (SYSTEM FULL CONTROL, Network Service - READ/WRITE, Administrator - FULL CONTROL) and then, under an elevated command prompt, run the iisreset /restart command.
Watch Question

Do you have some sort scheduled task running at this time?

Why the C:\Windows\Temp folder delete/recreate every week?
Please find which program delete/recreate it and try to solve it.
Please set rights of C:\Windows\Temp folder as below:
 User: Everyone
 Rights: Only this folder, deny "Delete".

You can use scheduled task to run a batch file at sat morning, batch file like below:
; batch content
cacls C:\windows\Temp /E /G administrator:F
iisreset /restart


I do not have any tasks (that i can locate) running at this task.  I've been trying to "find" which application is doing it.  Research shows this could be something IIS is doing as a result of a service / process permission not being correct.

I want to fix the problem rather than creating an automated "block" or "band-aid" to correct the problem when it occurs.
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview


Thank you, huacat - i will install the Process Monitor before Saturday and see which program / process affects the C:\Windows\Temp folder.


Not so much a solution as a good way to help me determine what was happening.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.