Default Profile - My Documents resolves to wrong username

Default Profile - My Documents resolves to wrong username

Post by Fran » Thu, 14 Dec 2006 08:11:52


I have a default profile on a workstation that was created with a domain
account versus a local admin account. If I look at the contents of
c:\Documents and Settings\Default User\ directory using Windows Explorer,
instead of c:\Documents and Settings\Default User\My Documents, I have
c:\Documents and Settings\Default User\bob's Documents (bob is a domain
account). If I look at the same directory from command shell, I get "My
Documents". I've tried to rename the folder "bob's Documents" using Explorer
to "My Documents", but the error message states the source and destination
are the same.

My guess is the username "bob" is stored somewhere in the registry of the
workstation, and is being used by the Explorer shell to resolve "My". How
can I fix the Default User profile so that using Explorer I get "My
Documents" rather than "bob's documents". BTW - all local profiles are based
on the Default Profile.

Thanks,

Frank
 
 
 

Default Profile - My Documents resolves to wrong username

Post by Randy Reim » Fri, 15 Dec 2006 07:20:54

I believe there is a better explanation for Frank:

I've also seen where there is a file called desktop.ini in that folder, that
has a set of entries in it, like this:
[DeleteOnCopy]
Owner=aegibson
Personalized=5
PersonalizedName=My Documents

Even from a network share, this folder shows up as "aegibson's Documents".
Renaming the folder to anything other than :My Documents, will rename the
folder, but the behavior comes back as soon as you rename it back to the
PersonalizedName= name, it renames itself. This is probably your problem.
This file is a hidden, system file, so you need to be able to see hidden and
protected operating system files in order to see it. You can remove that
section, and it will revert to the default behavior, or even delete it. Not
sure if anything truly refers back to it - I would be safe, delete the
section.

Randy Reimers

 
 
 

Default Profile - My Documents resolves to wrong username

Post by SWFu » Sat, 16 Dec 2006 17:17:00

Must admit, I hadn't encountered that entry before. Makes you wonder what the
interaction betweem "Owner=" and the real owner of the folder is.
 
 
 

Default Profile - My Documents resolves to wrong username

Post by Randy Reim » Sun, 17 Dec 2006 08:02:11

In this case, Owner only shows as the folder name. There are many other
entries there - this is where some software actually changes the default
icon, maybe even the "feel" of the folder, such as other columns in detailed
view. Here is one from the "My Pictures" folder:
[DeleteOnCopy]
Owner=RReimers
Personalized=39
PersonalizedName=My Pictures
[.ShellClassInfo]
InfoTip=@Shell32.dll,-12688
IconFile=%SystemRoot%\system32\mydocs.dll
IconIndex=-101

Some of the use is obvious, some is ???????? Lots of hidden things. Makes
being a support admin SO much fun!

Randy Reimers