Folder Redirection

N

Nex6

;windows 2000 AD;

I would like to redirect : favorities,my documents, cookies, and maybe
desktop to users Home directorys. (h:\) ((hard coded in the ADUC profile)

I Currently, have some kiosk machines using a %logonserver% by global
group. redirecting there desktop. it is being redirected to the sysvol.

when looking up to setup my users, i noticed only %username% and
%userprofile% is supported and will work?

is this true? becuase i have a very large user base and can not use a
UNC path, i need all user redirect to be in there home directorys.

i wrote a script the changes the values :

code:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\software\Microsoft\windows\currentversion\explorer\user
shell folders]
"Favorites"=hex(2):48,00,3a,00,5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,74,00,\
65,00,73,00,00,00
"Personal"=hex(2):48,00,3a,00,5c,00,4d,00,79,00,20,00,44,00,6f,00,63,00,75,00,\
6d,00,65,00,6e,00,74,00,73,00,00,00
"Cookies"=hex(2):48,00,3a,00,5c,00,43,00,6f,00,6f,00,6b,00,69,00,65,00,73,00,\
00,00
"Desktop"=hex(2):68,00,3a,00,5c,00,44,00,65,00,73,00,6b,00,74,00,6f,00,70,00,\
00,00

end code:

this changes all values to h:\

is it possble to do this without the script and do this in a GPO?

with a %homeshare% or something?



Thanks in adavance...


-Nex6
 
L

lforbes

Chriss3 MVP said:
Hello,
Have a look at
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/management/user01.mspx

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
------------------------------------------------
http://www.chrisse.se - Active Directory Tips

Nex6 said:
;windows 2000 AD;

I would like to redirect : favorities,my documents, cookies, and maybe
desktop to users Home directorys. (h:) ((hard coded in the ADUC profile)

I Currently, have some kiosk machines using a %logonserver% by global
group. redirecting there desktop. it is being redirected to the sysvol.

when looking up to setup my users, i noticed only %username% and
%userprofile% is supported and will work?

is this true? becuase i have a very large user base and can not use a UNC
path, i need all user redirect to be in there home directorys.

i wrote a script the changes the values :

code:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERsoftwareMicrosoftwindowscurrentversione
xploreruser
shell folders]
"Favorites"=hex(2):48,00,3a,00,5c,00,46,00,61,00,76,00,6f,00,7
2,00,69,00,74,00,
65,00,73,00,00,00
"Personal"=hex(2):48,00,3a,00,5c,00,4d,00,79,00,20,00,44,00,6f
,00,63,00,75,00,
6d,00,65,00,6e,00,74,00,73,00,00,00
"Cookies"=hex(2):48,00,3a,00,5c,00,43,00,6f,00,6f,00,6b,00,69,
00,65,00,73,00,
"Desktop"=hex(2):68,00,3a,00,5c,00,44,00,65,00,73,00,6b,00,74,
00,6f,00,70,00,
00,00

end code:

this changes all values to h:

is it possble to do this without the script and do this in a GPO?

with a %homeshare% or something?



Thanks in adavance...


-Nex6

Hi,

The My Documents and Desktop can be done in Group Policy. The
Favourites and the Cookies need a script. I have 2000 users.
Basically all my users are subdivided into ABC Users, DEF Users, etc
because I don’t want to have them all in one OU. I do the same with
their user directories.
Eg. ABC Users is in \\server\share\abc users\%username%

I then have all the ABC Users a member of the ABC Users Group, etc.

In Folder Redirection I do it on the Upper "MYUsers" OU containing
all the ABC Users, DEF Users OU’s. I redirect via group.

ABC Users (group) redirected to \\server\share\ABC
Users\%username%

I haven’t done a drive map her in case there are times when the drives
don’t map for some reason. However, you can always do your redirect
to H:\ if you want instead of the share.

My Scripts are VBS logon scripts set in Group Policy.

Creating Favorites Folder script (favfolder.vbs)

On Error Resume Next
Set fs = CreateObject ("Scripting.FileSystemObject")
Set foldr = fs.CreateFolder ("H:\Favorites")
fs.CopyFolder "\\server\NETLOGON\Links" ,
"H:\Favorites\Links"
On Error Resume Next
Set WSHShell = nothing

Creating Favorites Redirection (favregistry.vbs)

Dim Path
Path = "HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\User Shell Folders\"
set ws = WScript.CreateObject("WScript.Shell")
o=ws.RegWrite(Path & "Favorites", "H:\Favorites",
"REG_EXPAND_SZ")
v=ws.RegRead(Path & "Favorites")
Set WSHShell = nothing

Cheers,

Lara
 
L

lforbes

Chriss3 MVP said:
Hello,
Have a look at
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/management/user01.mspx

--
Regards
Christoffer Andersson
Microsoft MVP - Directory Services

No email replies please - reply in the newsgroup
------------------------------------------------
http://www.chrisse.se - Active Directory Tips

Nex6 said:
;windows 2000 AD;

I would like to redirect : favorities,my documents, cookies, and maybe
desktop to users Home directorys. (h:) ((hard coded in the ADUC profile)

I Currently, have some kiosk machines using a %logonserver% by global
group. redirecting there desktop. it is being redirected to the sysvol.

when looking up to setup my users, i noticed only %username% and
%userprofile% is supported and will work?

is this true? becuase i have a very large user base and can not use a UNC
path, i need all user redirect to be in there home directorys.

i wrote a script the changes the values :

code:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USERsoftwareMicrosoftwindowscurrentversione
xploreruser
shell folders]
"Favorites"=hex(2):48,00,3a,00,5c,00,46,00,61,00,76,00,6f,00,7
2,00,69,00,74,00,
65,00,73,00,00,00
"Personal"=hex(2):48,00,3a,00,5c,00,4d,00,79,00,20,00,44,00,6f
,00,63,00,75,00,
6d,00,65,00,6e,00,74,00,73,00,00,00
"Cookies"=hex(2):48,00,3a,00,5c,00,43,00,6f,00,6f,00,6b,00,69,
00,65,00,73,00,
"Desktop"=hex(2):68,00,3a,00,5c,00,44,00,65,00,73,00,6b,00,74,
00,6f,00,70,00,
00,00

end code:

this changes all values to h:

is it possble to do this without the script and do this in a GPO?

with a %homeshare% or something?



Thanks in adavance...


-Nex6

Hi,

The My Documents and Desktop can be done in Group Policy. The
Favourites and the Cookies need a script. I have 2000 users.
Basically all my users are subdivided into ABC Users, DEF Users, etc
because I don’t want to have them all in one OU. I do the same with
their user directories.
Eg. ABC Users is in \\server\share\abc users\%username%

I then have all the ABC Users a member of the ABC Users Group, etc.

In Folder Redirection I do it on the Upper "MYUsers" OU containing
all the ABC Users, DEF Users OU’s. I redirect via group.

ABC Users (group) redirected to \\server\share\ABC
Users\%username%

I haven’t done a drive map her in case there are times when the drives
don’t map for some reason. However, you can always do your redirect
to H:\ if you want instead of the share.

My Scripts are VBS logon scripts set in Group Policy.

Creating Favorites Folder script (favfolder.vbs)

On Error Resume Next
Set fs = CreateObject ("Scripting.FileSystemObject")
Set foldr = fs.CreateFolder ("H:\Favorites")
fs.CopyFolder "\\server\NETLOGON\Links" ,
"H:\Favorites\Links"
On Error Resume Next
Set WSHShell = nothing

Creating Favorites Redirection (favregistry.vbs)

Dim Path
Path = "HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\User Shell Folders\"
set ws = WScript.CreateObject("WScript.Shell")
o=ws.RegWrite(Path & "Favorites", "H:\Favorites",
"REG_EXPAND_SZ")
v=ws.RegRead(Path & "Favorites")
Set WSHShell = nothing

Cheers,

Lara
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top