+ Post New Thread
Results 1 to 7 of 7
Windows Thread, Redirect My Docs in Technical; In a GPO I have redirected the My Documents folder according to where the user is based, e.g. \servername\sharename\username The ...
  1. #1

    Join Date
    Jun 2008
    Posts
    520
    Thank Post
    105
    Thanked 36 Times in 28 Posts
    Rep Power
    17

    Redirect My Docs

    In a GPO I have redirected the My Documents folder according to where the user is based, e.g. \\servername\sharename\username

    The home directory is mapped as H: drive. With myself as a user, I've tried redirecting the My Documents folder by simply entering H:\ in the Folder Redirection and noticed that this takes no affect and still remains as \\servername\sharename\username

    I don't like the the idea that when users go to their My Documents folder and then go into another folder, the address bar gets displayed as this: \\servername\sharename\username\folder\etc.

    Is there a workaround to this? How can I simply redirect the My Documents folder simply as H:\ rather than putting in the UNC path?

  2. IDG Tech News

  3. #2
    dwhyte85's Avatar
    Join Date
    Mar 2009
    Location
    Berkshire
    Posts
    1,144
    Thank Post
    138
    Thanked 136 Times in 123 Posts
    Rep Power
    67
    This used to work, it's with the registry though:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Shell Folders\

    Or changing the properties on My Docs manually to point to the drive letter :-(

  4. #3

    Join Date
    Jun 2008
    Posts
    520
    Thank Post
    105
    Thanked 36 Times in 28 Posts
    Rep Power
    17
    I would like to do this globally across all users.

    I've pointed the 'Personal' bit as H:\ but this hasn't worked.

  5. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,117
    Blog Entries
    2
    Thank Post
    111
    Thanked 513 Times in 444 Posts
    Rep Power
    114
    Pretty sure you can't do folder redirection with a group policy to "h:" - the folder redirection group policy gets executed before drive letters are mapped and it falls over.

    You should be able to make the change to the registry with a login script
    Code:
    set oShell=createobject("wscript.shell")
    oShell.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal","H:\","REG_EXPAND_SZ"
    (NB - you should use "user shell folders" rather than "shell folders"; at some point MS will stop supporting the shell folders bit - it's a left over from pre-Windows 95!)

    Why not just let it redirect to the UNC? It should work for all software you have and, assuming you have your permissions right, there's nothing to lose by letting users know where their files are stored (and if your permissions aren't right then ...)

  6. Thanks to srochford from:

    diggory (20th May 2009)

  7. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    6,763
    Thank Post
    171
    Thanked 1,055 Times in 828 Posts
    Rep Power
    217
    Under Folder Redirection, set the policy to Basic and Redirect to the user's home directory

    Share the folders you want to map as "My Documents" as username$ so if you had someone called Jo Bloggs, in Active Directory the path would read \\SERVERNAME\JBLOGGS$

    To keep things simple, call the folder JBLOGGS and share it as JBLOGGS$ If you have a lot of users to share, use a free application like Autoshare.

  8. #6

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,117
    Blog Entries
    2
    Thank Post
    111
    Thanked 513 Times in 444 Posts
    Rep Power
    114
    You don't need to set up individual shares - when you create your user, you can specify the home folder as (say) \\server\home\%username% AD will then work out what the folder should be called and create it. the user will then get a home folder of \\server\home\jbloggs or whatever

    The time when creating separate shares is useful is if you have Macs or Linux; neither is happy "deep mapping" (ie mapping to \\server\share\folder rather than \\server\share)

  9. #7

    Join Date
    Feb 2006
    Location
    Dorset/Hants
    Posts
    88
    Thank Post
    2
    Thanked 13 Times in 10 Posts
    Rep Power
    15
    Quote Originally Posted by Chuckster View Post
    Is there a workaround to this? How can I simply redirect the My Documents folder simply as H:\ rather than putting in the UNC path?
    Do it the other way around, don't redirect MyDocs to homedir, create homedir from MyDocs, which is set by redirection policy.

    I've just set ours up for next year's intake, I set folder redirection to \\ourschool\students\2009, if you get permissions/settings right, there is no needs to create shares and set permissions for each student nor even create folders.

    On first logon the MyDocs folder will be created in the above DFS share then our logon script does (amongst other things!);

    Set oshell = WScript.CreateObject("WScript.Shell")
    set objWN = wscript.createobject("wscript.network")
    objwN.MapNetworkDrive "M:", oshell.specialfolders("MyDocuments")

    (can you tell I started from 2 different samples!)

    We use "m:" as hoMe for those dodgy old apps that don't like UNC paths.

    Actually I went a bit mad setting up for intake to 2014, saves having to remember/look up the special permissions needed for the auto MyDocs craetion to work.

    If you google "folder redirection permissions" you'll find varying samples of permissions to set - we have domains admins full control, creator owner set not to have take ownership/change permissions.

    tim

SHARE:
+ Post New Thread

Similar Threads

  1. Becta Docs Search
    By GrumbleDook in forum General Chat
    Replies: 0
    Last Post: 23rd October 2008, 11:11 AM
  2. Recovered Docs
    By witch in forum Educational Software
    Replies: 4
    Last Post: 4th February 2008, 01:54 PM
  3. BAD dotNet docs
    By PiqueABoo in forum Coding
    Replies: 1
    Last Post: 10th November 2007, 03:54 PM
  4. My Docs access problem
    By Ste_Harve in forum Windows
    Replies: 2
    Last Post: 30th August 2007, 12:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •