Temp files are lingering when MS office 2007 programs close.

Joe
Joe used Ask the Experts™
on
We are running Windows server 2003 and XP on our workstations.

On our share drive we are having the an issue that when any MS office program is opened a temp file is created and normally it will go away when the program is closed but they are not. There are quite a few temp files building up in our share drive.

Im really not even sure where to begin with this

Thanks in advance for the help
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Bill BachPresident and Btrieve Guru

Commented:
Normally, MS Office will delete these files.  My guess is that you have an anti-virus solution that is attempting to scan these files, and it has the files open when the DELETE operation is attempted, which then causes it to fail.

Try excluding the files from your AV solution & see if that helps.
Bill BachPresident and Btrieve Guru

Commented:
If that doesn't help, then running Process Monitor on a workstation and monitoring the file system access to that folder may yield some clues, too.
JoeSystems Administrator

Author

Commented:
That could be it but there are hundreds of temp files.  I can't just exclude MS office files from our scans.  It's on a share drive for over five thousand users. This would be a huge vulnerability.

On one of the folders with the issue the owner was nothing but an SID which usually means that the user that created the folder is deleted. Could this be and issue. I changed the owner to administrator.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Bill BachPresident and Btrieve Guru

Commented:
Agreed.  However, you should be able to exclude JUST the temp files, based on the naming convention.

It could be that the users don't have rights to delete files, either, so be sure to check rights for each user that is able to access the folder.
JoeSystems Administrator

Author

Commented:
Okay yeah, I should be able to do that. That would make sense then if the file is being scanned then it won't delete because it is active. I've seen similar issues.

That's exactly what I was thinking with the ownership. That users couldn't delete the files. I picked a particular folder on the share drive and deleted all the .tmp files and changed the owner to administrator. I will run a search tomorrow and see the how many .tmp files are there... If any. If there are then i will exclude *.tmp files from the AV scans.
JoeSystems Administrator

Author

Commented:
Apparently this is a common issue with MS office 2007 and 2010. They are saying that is users that do not have modify permissions that get this issue. I looked at the ownership of the .tmp files and they are being created by such users. I'm not sure id there is a patch for this. I wonder if there is a way around it because i really only want to give certain users modify permissions.

This is where is found that.
http://answers.microsoft.com/en-us/office/forum/office_2007-excel/office-2007-creates-xxxxxxxxtmp-files-in-same/eb7ee34d-3a02-4fe7-a1f3-9a208439d84a
Bill BachPresident and Btrieve Guru

Commented:
According to this Microsoft KB article, the simple answer is "No way, Jose"!
    http://support.microsoft.com/kb/211632
JoeSystems Administrator

Author

Commented:
I don't see where it says that this isn't possible. Maybe i am misreading it lol
President and Btrieve Guru
Commented:
When and where Word creates temporary files
The location where Word creates the temporary files is hardcoded information and cannot be edited. Therefore, it is important that NTFS permissions for the user are set accordingly. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
277867 Windows NTFS permissions are required when you run Word on any NTFS partition that has Windows 2000, Windows XP Professional, Windows Server 2003, or Windows Vista installed
In general, Word creates temporary files for the following types of data.
JoeSystems Administrator

Author

Commented:
Oh wow im dumb thanks i will let them know that.
JoeSystems Administrator

Author

Commented:
This may be a stupid question. Is there any way to give "ordinary" users permission to only delete .tmp files? I have never heard of this but it would be awesome if there was a way
Bill BachPresident and Btrieve Guru

Commented:
Not that I've ever seen. This was one area which Netware was far superior -- you could easily grant files by file.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial