+ Post New Thread
Results 1 to 13 of 13
Windows Thread, Group policy to redirect desktop in Technical; Yes, I know it's easy - except it isn't :-) We have 3 sites; students get a home folder on ...
  1. #1

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124

    Group policy to redirect desktop

    Yes, I know it's easy - except it isn't :-)

    We have 3 sites; students get a home folder on a server at the site where they do their main qualification - this is created by a script when the user is created.

    What I'd like to do is redirect the desktop to either <homefolder>\desktop or \\<server>\<desktopshare>\username but I can't see how to do this.

    It looks easy - you should just be able to redirect to %homeshare%\desktop - except you can't; group policy for redirection doesn't have access to this environment variable so redirection fails.

    For now, I've just added a couple of lines to the login script:
    oShell.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Ex plorer\User Shell Folders\Desktop","%homeshare%\desktop","REG_EXPAND _SZ"
    if not ofso.folderexists("n:\desktop") then ofso.createfolder("n:\desktop")

    - this works but it feels kludgy :-)

    Is there a better way?

  2. #2
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    Re: Group policy to redirect desktop

    Instead of using the environment variable - maybe try using just the letter?

    For example where you write %homeshare% write U:\

    then again - if your system works already :-D

    fooby

  3. #3

    Join Date
    Dec 2006
    Location
    US
    Posts
    300
    Thank Post
    64
    Thanked 17 Times in 16 Posts
    Rep Power
    18

    Re: Group policy to redirect desktop

    Here is the complete method I use to redirect the desktop:
    1. Edit user GPO
    2. Go to user config
    3. Go to folder redirection
    4. Right click folder redirection and click properties.
    5. My first setting is: redirect all to same location
    6. My second setting is: create folder for each user.
    7. My path is: \\servernamehere\Staff Private\{username} for staff and
    \\servernamehere\Student Private\{username} (students and staff are different OUs).

    It works very nicely for me. Let me know if this is any help at all.

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124

    Re: Group policy to redirect desktop

    Thanks both.

    Drive letter doesn't work - it gets changed to the sharename of the user setting things up (help says this is because drive letters may not be mapped at redirection time which is fair enough but life would be so much easier if they mapped the drives earlier!!)

    OU idea is good - we do separate students into OUs on basis of site. Unfortunately it's not 100%. What happens sometimes is that a student will enrol on a course based at Wembley and their home folder gets created there; their account is put in the Wembley OU. They later transfer to a course at Willesden; if no changes are made everything will still work. What sometimes happens, though, is that a student will report problems accessing files and someone on the helpdesk will move their home folder. This is fine but they never remember to move the student to the right OU so the desktop redirection would fail!

    It does give me an idea; I could run a script each night to check if a user had got the "wrong" OU/home folder combination and fix it

  5. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Group policy to redirect desktop

    You might also want to look at using DFS to consolidate your share name space. eg, what I end up with is

    \\carrhill\shares\profiles$\%USERNAME%\desktop

    despite the fact I have two servers (one for staff, one for pupils).

  6. #6
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    Re: Group policy to redirect desktop

    @Geoff how do you do that? I had a DFS with 3 servers with the same data on shared as \\domain\shared (and below this had \desktop for a single one desktop for many users) but from what you have written in your post you can have different folders / different servers with data in the same DFS namespace?

    Sorry to hijack the thread a bit :S but a link to what you might have done would be appreciated

    fooby

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Group policy to redirect desktop

    You can't, you have to hack round the problem with NTFS junctions and Hard Links.

  8. #8
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    19

    Re: Group policy to redirect desktop

    http://www.windowsnetworking.com/art...amespaces.html

    After some googling it appears Windows Server 2003 R2 has such a feature called Namespaces.

    I think this is where I might be playing next

    fooby

  9. #9
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: Group policy to redirect desktop

    Given that you can assign a homeshare as part of the AD account profile surely you could utilise that to set the homeshare to specific drive and then use the drive letter.

  10. #10

    Join Date
    Sep 2006
    Location
    Essex
    Posts
    781
    Thank Post
    1
    Thanked 32 Times in 30 Posts
    Rep Power
    24

    Re: Group policy to redirect desktop

    Following the implementation of a terminal server in a RM CC3 network, I configured separate TS profiles and needed a way to redirect the Terminal Server desktop to the desktop folder located in the RM profile for various groups.

    Staff at the school had been allowed to save to their desktop even though the school had been advised that this was not best practice and now staff were now asking if they could have access within the TS environment to documents that were saved on their desktop.

    This presented a challenge, as the staff user profiles were all over the place and there was no consistency so redirection using Folder Redirection via GPO was going to be difficult to implement.

    I wrote this logon script to extract the profile path from active directory and set the desktop shell folder registry key for various groups.

    Not sure if it will help in your situation.
    Attached Files Attached Files

  11. #11

    Join Date
    Jan 2010
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Redirect

    Hmmm,
    All I am trying to do is make a folder with shortcuts and redirect all pupil desktops to that folder......easy yeh.....NO

    I have redirected Start Menu in GPMC no problem. As a test I just redirected the desktop to the same folder as the start menu......nothing happens. Just My Docs and IE.

    How much more simple can it get, Start menu redirect works, Desktop redirect to the same folder doesn't!! Aaagghh.

    Has anyone else had similar issues?

  12. #12
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    3,765
    Thank Post
    898
    Thanked 417 Times in 350 Posts
    Blog Entries
    12
    Rep Power
    87
    Quote Originally Posted by doktajimmy View Post
    Hmmm,
    All I am trying to do is make a folder with shortcuts and redirect all pupil desktops to that folder......easy yeh.....NO

    I have redirected Start Menu in GPMC no problem. As a test I just redirected the desktop to the same folder as the start menu......nothing happens. Just My Docs and IE.

    How much more simple can it get, Start menu redirect works, Desktop redirect to the same folder doesn't!! Aaagghh.

    Has anyone else had similar issues?
    tried different folders?

  13. #13

    Join Date
    Jan 2010
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by ittech View Post
    tried different folders?
    Yup, first off I tried SYSVOL\......\scripts\pupil desktop

    then tried redirecting to the working SYSVOL\......\scripts\pupil menu

    just tried \\users\pupils\pupil desktop

    no joy....clearly permissions are not an issue either, as the Pupil Menu folder redirect works

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 56
    Last Post: 6th November 2007, 08:27 AM
  2. Group Policy
    By jman167 in forum Windows
    Replies: 1
    Last Post: 28th June 2007, 10:27 PM
  3. need instructions on how to redirect desktop & startmenu
    By projector1 in forum How do you do....it?
    Replies: 5
    Last Post: 9th March 2007, 10:01 AM
  4. Group policy etc
    By moiebus in forum Wireless Networks
    Replies: 20
    Last Post: 8th November 2006, 11:48 PM
  5. Group Policy
    By faza in forum Wireless Networks
    Replies: 27
    Last Post: 5th July 2006, 06:34 AM

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
  •