Solved

Word could not create the work file. Check the temp environment variable.  For all new  domain users

Posted on 2016-10-24
6
75 Views
Last Modified: 2016-10-25
Hello,

The PC is on a Domain and whenever a new user logs in and opens Word (or Excel) this is the message they get:

Word could not create the work file. Check the temp environment variable.

I can fix the issue by applying changes to the registry following MS https://support.microsoft.com/en-us/kb/2285187

However this gets annoying because this is at a non-profit where a lot of people come and go.

A little history.  They purchased this as a Windows 7 Home PC.  It was upgraded to Windows 7 Pro (to connect to Domain) and then immediately upgraded to Windows 10 Pro.  I have 2 PCs doing the exact same thing.

What I find in the registry under the key:

HKEY_CURRENT_USER \Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

are the following entries:

Cache REG_EXPAND_SZ   C:\USER\OLD_USER\AppData\Local\Microsoft\Windows\INetCache
Cookies REG_EXPAND_SZ   C:\USER\OLD_USER\AppData\Local\Microsoft\Windows\INetCookies

The OLD_USER was created when the PC was first brought up in Win 7 Home.  This name is there whenever a new user logs in.

I can change the OLD_USER to the new Domain User and everything works.  However I have to do this whenever a new user logs in.

I know there have to a setting somewhere in the registry to correct this.

Anybody know where it is?

Thanks,

Larry
0
Comment
Question by:laltobelli
6 Comments
 
LVL 35

Expert Comment

by:Cris Hanna
Comment Utility
Have you considered group policy to set environmental variables?
0
 
LVL 29

Expert Comment

by:Sudeep Sharma
Comment Utility
I have doubt over "Windows 7 Home and Domain User. "

Further are the environmental variable set on the system correctly?

Sudeep
0
 
LVL 32

Accepted Solution

by:
sarabande earned 500 total points
Comment Utility
new users get their defaults from HKEY_USERS. you may search for all occurrences of OLD_USER (whole word, not case sensitive) and change all which might make trouble. before, make a backup of the registry, delete the old user from domain and local users, change owner and access rights of folder %systemdrive%\Users\Old User\

Sara
0
Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

 
LVL 17

Expert Comment

by:xtermie
Comment Utility
Try this as Microsoft in embedding files from Internet explorer and Office together for some reasons.

This problem occurs because the Temporary Internet Files location for Internet Explorer is set to be an unexpected location. Specifically, the Temporary Internet Files location for Internet Explorer is set to be a location in which the user does not have permissions to create new temporary files.


To resolve this problem, change the Temporary Internet Files location for Internet Explorer. To do this, follow these steps:

1.On the Tools menu in Internet Explorer, click Internet Options to display the Internet Options dialog box.
2.In the Internet Options dialog box, click the General tab.
3.In the Browsing history section, click Settings to open the Temporary Internet Files and History Settings dialog box.
4.In the Temporary Internet Files and History Settings dialog box, click Move Folder to open the Browse for Folder dialog box.
5.In the Browse for Folder dialog box, select the following location:
For Windows Vista, for Windows 7, and for Windows Server 2008:
C:\Users\<user name>\AppData\Local\Microsoft\Windows
For Windows XP and for earlier versions of Windows:
C:\Documents and Settings\<user name>\Local Setting
Note Whichever location you select, a folder that is called Temporary Internet Files is created. And if it is necessary, content is migrated to the new location.

6.Click OK to close the Browse for Folder dialog box.
7.Click OK to close the Temporary Internet Files and History Settings dialog box.
8.Click OK to close the Internet Options dialog box.
9.Restart the computer when you are prompted.

Some useful
http://support.microsoft.com/kb/822005
http://answers.microsoft.com/en-us/office/forum/word
http://www.tildemark.com/word-could-not-create-the-work-file-error/
http://windows.microsoft.com/en-US/windows-vista/Turn-User-Account-Control-on-or-off
0
 

Author Comment

by:laltobelli
Comment Utility
Let's start at the top.

Cris - I tried to create a Group Policy for the enviromental variables and it did not work, may be doing something wrong here.  (https://technet.microsoft.com/en-us/library/cc772047(v=ws.11).aspx)

Sudeep - Th PC started out a Windows Home with OLD_USER.  Then it was upgraded to pro and joined to a domain.  The system variables TEMP amd TMP are correctly set to:  %USERPROFILE%\AppData\Local\Temp

Sarabande - You got IT!
Searching through HKEY_USERS I came upon this upon this KEY:

HKEY_USERS\S-1-5-21-123456-XXXXX-XXXXXX-XXXXX-XXXX\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\

There was a list of Multi-String Values all beginning with %USERPROFILE%, except for INETCACHE and INETCOOKIES.  These 2 Values were set to C:\Users\OLD_USER\....

Changed C:\Users\OLD_USER\ to %USERPROFILE%, rebooted and the issue resolved itself.

Thanks!

xtermie - I would have to do this for every new user who logs in, just what I am trying to avoid.
0
 

Author Closing Comment

by:laltobelli
Comment Utility
I did not change every occurrence of OLD_USER.   To your point, it may have created additional problems.  See my last post, I did a search until I found what looked odd.
0

Featured Post

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

This article will show you how to use shortcut menus in the Access run-time environment.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now