[THIN] Re: Folder Redirection - My Documents

  • From: "Jim Kenzig http://thethin.net" <jimkenz@xxxxxxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Fri, 16 Jan 2004 12:17:32 -0500

Thats all good but at least in NT 4 the folders don't get created. We
had to add the following into our usrlogon2.cmd file...
 
If Exist " \\Files\Users\%USERNAME%\My
<file://\\Files\Users\%USERNAME%\My>  Documents" goto next
md " \\Files\Users\%USERNAME%\My <file://\\Files\Users\%USERNAME%\My>
Documents"
 
:next
If Exist " \\Files\Users\%USERNAME%\My
<file://\\Files\Users\%USERNAME%\My>  Documents\Templates" goto next2
md " \\Files\Users\%USERNAME%\My <file://\\Files\Users\%USERNAME%\My>
Documents\Templates"
 
:next2
If Exist " \\Files\Users\%USERNAME%\Favorites
<file://\\Files\Users\%USERNAME%\Favorites> " goto next3
md " \\Files\Users\%USERNAME%\Favorites
<file://\\Files\Users\%USERNAME%\Favorites> "
 
:next3
If Exist " \\Files\Users\%USERNAME%\Personal
<file://\\Files\Users\%USERNAME%\Personal> " goto next4
md " \\Files\Users\%USERNAME%\Personal
<file://\\Files\Users\%USERNAME%\Personal> "
 
:next4
If Exist " \\Files\Users\%USERNAME%\Application
<file://\\Files\Users\%USERNAME%\Application>  Data" goto office
md " \\Files\Users\%USERNAME%\Application
<file://\\Files\Users\%USERNAME%\Application>  Data"
 
Rem Set office profile
:office
If Exist " \\Files\Users\%USERNAME%\Office.txt
<file://\\Files\Users\%USERNAME%\Office.txt> " goto Temp
"C:\Program Files\ORKTools\ToolBox\Tools\Office Profile
Wizard\Proflwiz.exe" /r c:\wtsrv\profiles\office.ops /q
copy c:\wtsrv\system32\office.txt " \\Files\Users\%USERNAME%\
<file://\\Files\Users\%USERNAME%\> "
attrib " \\Files\Users\%USERNAME%\Office.txt
<file://\\Files\Users\%USERNAME%\Office.txt> " +r +h
 
Rem Reset permissions on Temp
:Temp
cacls %temp% /t /e /g everyone:F
cd /d %temp%
for /d %i in (*) do cacls /t /e /g everyone:F
 
 
REM Fix problem with Outlook forms not clearing
If Not Exist " \\Files\Users\%USERNAME%\Application
<file://\\Files\Users\%USERNAME%\Application>
Data\Microsoft\Forms\Frmcache.dat" goto end 
del " \\Files\Users\%USERNAME%\Application
<file://\\Files\Users\%USERNAME%\Application>
Data\Microsoft\Forms\Frmcache.dat"
goto End
:End


-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On
Behalf Of Rick Fogarty
Sent: Friday, January 16, 2004 12:07 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Folder Redirection - My Documents


You may want to take a look a this too....
 
http://tinyurl.com/29p4w <http://tinyurl.com/29p4w> 
 
Rick

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Christopher_Wilson@xxxxxxxxxxxxxx
Sent: Friday, January 16, 2004 11:42 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Folder Redirection - My Documents



Thanks, Greg, that works.  I was hoping to grab it from a variable
though since I presently have home directories residing on more than one
file server.  We are going to be consolidating to a single box.  I may
have to wait until then to implement this policy.   

Thanks, 
CW 



        "Greg Reese" <GReese@xxxxxxxxxxxxxxxx> 
Sent by: thin-bounce@xxxxxxxxxxxxx 


01/16/2004 09:51 AM 
Please respond to thin 

        
        To:        <thin@xxxxxxxxxxxxx> 
        cc:         
        Subject:        [THIN] Re: Folder Redirection - My Documents    



try the path. 
  
I set mine as  <file://file_server/Users$/%username%>
\\file_server\Users$\%username% 
  
Greg 
-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On
Behalf Of Christopher_Wilson@xxxxxxxxxxxxxx
Sent: Friday, January 16, 2004 10:42 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Folder Redirection - My Documents


Hello, List. 

There is probably something simple I am over looking here.  Trying to
redirect the My Documents folder to users' home directories instead of
the default location in their profile.  I have a GPO trying to enforce a
policy to this end, but it the redirection keeps failing.  The event log
says the redirect fails due to invalid path.  %homedrive%%homepath%,or
%homeshare%%homepath%, or just specifying a drive letter (H:).  None of
that is working.   

What have you done to get it working?  See anything obvious that I've
missed? 

Thanks in advance, 

Christopher Wilson
Citrix Administrator
BJ Services Network Support
713.895.5681 


Other related posts: