RDS user temp folder not clearing (server 2012r2)

Nisam Ali 1 Reputation point
2023-03-17T06:09:40.1366667+00:00

Dear Team,

We have a server 2012 r2 rdp environment. Recently I have noticed that each user profile utilizes more storage for the APPDATA folder, with more investigation I have found most files are in c:\user\appdata\local\temp and c:\user\appdata\local\microsoft\windows\INetcache.

I feel there is no auto-clear temp folder in windows server 2012r2.

How I can empty this? When I use disc cleanup this is not cleaning user temp/cache files.

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,526 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,088 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,227 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,926 Reputation points
    2023-03-17T16:01:02.6133333+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to auto-clear temp folder

    The folder INetcache used by IE and caches temporary Internet Explorer files.

    The local\temp is also used for Windows to store temp files used by Windows services or programs.

    You can configure some GPO or script to clean it up

    Run Start > Internet Options -> Advanced tab -> Place a check-mark next to "Empty Temporary Internet Files folder when browser is closed" -> Click OK.

    --If the reply is helpful, please Upvote and Accept as answer--