Removing Office Document caches with a script/GPO

Since the last few months, I have received a lot of calls regarding the Office Document Cache.

The problem only exists on one of our Windows 2012 RDS servers and  only appears when users are logged into that RDS server.

Folders containing OfficeFileCache can be deleted on the server side where I would manually delete those folders.

So my question is: Should I create a PowerShell/DOS script to automatically delete the OfficeFileCache folders from the user profiles? Or is better to create a GPO that blocks the possible culprit (MSOSYNC.EXE)?

Thanks in advance,

SP-Brown


  • Edited by SP-Brown 22 hours 48 minutes ago
August 24th, 2015 4:35am

Hi,

According to your description, I suppose that your user account has no deleted permission in the Windows 2012 RDS servers. I'd like to explain it: When we open a Office file, it'll automatically create a temp file like ~$filename.

A temporary file is a file that is created to temporarily store   information in order to free memory for other purposes, or to act as a safety   net to prevent data loss when a program performs certain functions. For   example, Word determines automatically where and when it needs to create   temporary files. The temporary files only exist during the current session of   Word. When Word is shut down in a normal fashion, all temporary files are first   closed and then deleted.

If the user has no deleted permission, the temp file will retain. Thus, I recommend you assign the deleted permission to the user group if the policy of your organization is allowed.

More information about Office temporary files:

http://support.microsoft.com/kb/211632

Regards,

George Zhao
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
August 24th, 2015 10:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics