Thursday, April 16, 2009

[THIN] Re: Setting users MyDocuments folder

Group Policy is the best way to set this value. Create an .adm, add it to a GPO and set the value.
 
Next best is to write a login script. You could modify c:\windows\system32\usrlogon.cmd or create c:\windows\system32\usrlogn1.cmd.

Sample .adm:
 
CLASS USER
 
 CATEGORY Custom
  POLICY "Redirected Profile Folders"
   KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
 
   PART -------------------------------------------------------------------------- TEXT
   END PART
 
   PART "Setup profile folder redirection. If you wish to avoid the" TEXT
   END PART
 
   PART "redirection to the mandatory UNC path's in the default AD" TEXT
   END PART
 
   PART "group policies, use these instead. Here you can redirect" TEXT
   END PART
 
   PART "more folders and into mapped network drives." TEXT
   END PART
 
   PART -------------------------------------------------------------------------- TEXT
   END PART
 
   PART Cookies EDITTEXT
    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
    VALUENAME Cookies
    EXPANDABLETEXT
    REQUIRED
    DEFAULT %USERPROFILE%\Cookies
   END PART ;Cookies
 
   PART Desktop EDITTEXT
    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
    VALUENAME Desktop
    EXPANDABLETEXT
    REQUIRED
    DEFAULT %USERPROFILE%\Desktop
   END PART ;Desktop
 
   PART Favorites EDITTEXT
    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
    VALUENAME Favorites
    EXPANDABLETEXT
    REQUIRED
    DEFAULT %USERPROFILE%\Favorites
   END PART ;Favorites
 
   PART "Personal / My Docs" EDITTEXT
    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
    VALUENAME Personal
    EXPANDABLETEXT
    REQUIRED
    DEFAULT "%USERPROFILE%\My Documents"
   END PART ;Personal / My Docs
 
  END POLICY ;Redirected Profile Folders
 
 END CATEGORY ;Custom
 
 
On Thu, Apr 16, 2009 at 8:30 AM, Javier Borrajo <JBorrajo@laudus.cl> wrote:
But to have access to HKCU I have to be logged on as the user in quetion. I could write a script, but every user has a different MyDocuments folder.

Where does Windows 2003 get this values to put on

    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal

for very user. Is this value in NTUSER.DAT and I just cannot change it from my account?

Thanks a lot,
Javier.



Greg Reese wrote:
The registry key controlling it is in user shell folders the value is named "personal"

User shell folders is deep in hkcu. I am not at a computer but can look up the exact path for you when I get on the office if you have trouble finding it.

You can change the value for users as they log onto the server with a script or seed it on the default profile on your ts servers.

Sent from my iPhone

On Apr 16, 2009, at 4:14 AM, Javier Borrajo <JBorrajo@Laudus.cl> wrote:

Hi all,

I would like to know how can I change the user MyDocuments folder in a TS environment, without actually logging as the user. I do not want to use folder redirection.

Thanks,
Javier.

************************************************
For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link:
http://www.freelists.org/list/thin
Follow ThinList on Twitter
http://twitter.com/thinlist
Thin List discussion is now available in blog format at:
http://thinmaillist.blogspot.com
Thinlist MOBILE Feed
http://thinlist.net/mobile
************************************************
************************************************
For Archives, RSS, to Unsubscribe, Subscribe orset Digest or Vacation mode use the below link:
http://www.freelists.org/list/thin
Follow ThinList on Twitter
http://twitter.com/thinlist
Thin List discussion is now available in blog format at:
http://thinmaillist.blogspot.com
Thinlist MOBILE Feed
http://thinlist.net/mobile
************************************************


No comments: