Terminal server - Temp path is incorrect for users?


After a bit of research, I believe you are pulling "" from the wrong location.  I'm not 100% sure how you are obtaining temp though, so I can't say for sure without your help.

I have a user whose PrinterTemppath (under HKUsers\\) is reading "PDFCreator\\"

When she logs in to the server she is getting a profile path of %systemdrive%\\Users\\jane.doe

However, PDFC is trying to put its temp data in: %systemdrive%\\Users\\jane.doe.DOMAIN

Now, it's not uncommon for old terminal server profiles to hang around and require an alternate name for a new profile - jane.doe.DOMAIN would be the first alternate name, and after that, it would add numbers (jane.doe.DOMAIN.001, etc).

It appears that there are two places for shell folders -

HKU\\\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders

HKU\\\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\USER Shell Folders

The line in bold is considered authoritative.  (actually, you're supposed to call "SHGetFolderPath" or "SHGetKnownFolderPath" functions, but I believe they read from the bolded key first.)

Specifically, if you're trying to find Appdata you should be looking at either "Local Appdata" (preferred since the temp files for PDFC shouldn't move with the user's profile) or "Appdata".

I looked at jane.doe's Appdata in the "Shell Folders" key and it was showing the "wrong" version (with .DOMAIN at the end), so I can only guess that you are looking there.  I checked the user's own %TEMP% and %TMP% and they appear to be correct.

I am still running 1.2.3 because I'm waiting for all of the major stability bugs to work out of 1.3.x, but I'm guessing the behavior may be the same there as well?



thanks for your suggestions, we will have a closer look at this.