Solved

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

Posted on 2016-10-24
6
873 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 35

Expert Comment

by:Cris Hanna
ID: 41857937
Have you considered group policy to set environmental variables?
0
 
LVL 30

Expert Comment

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

Further are the environmental variable set on the system correctly?

Sudeep
0
 
LVL 34

Accepted Solution

by:
sarabande earned 500 total points
ID: 41858432
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 18

Expert Comment

by:xtermie
ID: 41858480
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
ID: 41859698
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.
1
 

Author Closing Comment

by:laltobelli
ID: 41859700
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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

631 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