Page 1 of 1 1
Topic Options
#197489 - 2010-01-21 02:12 PM My Documents folder (shell folders et al)
InforMed Offline
Fresh Scripter

Registered: 2006-03-23
Posts: 5
Loc: UK
I'm looking at the whole area of folder redirection as we consider rolling out Windows 7 wider. In our existing AD environment, we map the O: drive to the user's home folder. This ends up with a series of environment variables like this:

HOMEDRIVE=O:
HOMEPATH=\
HOMESHARE=\\server003\users$\fred.bloggs

So in the login script, we can access the "O": drive quite happily.

Now for some reason which I don't completely understand, using drive mappings is falling our of favour and the suggestion is to use folder redirection to simply map "My Documents" to the network share.

The net result of this is the following happens:

HOMEDRIVE=C:
HOMEPATH=\Users\fred.bloggs
HOMESHARE=

Actually HOMESHARE doesn't even exist.

So the problem is how best to get at the redirected folder. One could dig into the registry to look in shell folders but that's not good practice.

Is there a kixtart way to get the "My Documents" folder re-direction or does one have to call Windows functions?

I suspect this is a FAQ but I couldn't find anything obvious when searching. Probably using the wrong search terms.

Cheers, Rob.

Top
#197493 - 2010-01-21 11:07 PM Re: My Documents folder (shell folders et al) [Re: InforMed]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
I think you really need to use a GPO to do this correctly on Vista/Win7
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.118 seconds in which 0.091 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org