+ Post New Thread
Results 1 to 4 of 4
Windows Thread, Folder Redirection Favorites Problem Creating %username% Folder in Technical; I have tried pushing the ie favorites through and ADM, and a script. I even manually edited the reg files. ...
  1. #1

    Join Date
    Jul 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Folder Redirection Favorites Problem Creating %username% Folder

    I have tried pushing the ie favorites through and ADM, and a script. I even manually edited the reg files. But when the user logs in, it creates a folder called %username% instead of the users Name.

    Here is the expample script I am using. That all works and it does set the variables.

    Option Explicit

    Dim RegLocate, objShell

    Set objShell = WScript.CreateObject("WScript.Shell")

    RegLocate = "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\Shell Folders\Favorites"

    objShell.RegWrite RegLocate,"\\file004\Users\%USERNAME%\Favorites"," REG_SZ"

    RegLocate = "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\User Shell Folders\Favorites"

    objShell.RegWrite RegLocate,"\\file004\Users\%USERNAME%\Favorites"," REG_SZ"


    Thanks for any help
    Mike

  2. #2
    InTheDark's Avatar
    Join Date
    Dec 2007
    Location
    NW Kent
    Posts
    16
    Thank Post
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    14
    Here's an ADM file that we use to redirect a users Favorites folder to a new folder under their My Documents Folder.

    If works for us....

    CLASS USER

    CATEGORY "Student Modifications"

    POLICY "Mandatory Profile Favorites Location"

    KEYNAME "Software\Microsoft\Windows\CurrentVersion\Explore r\User Shell Folders"
    PART "Recommended location is \\server\%username%\My Documents\Favorites" TEXT
    END PART
    PART "Location of Favorites folder?" EDITTEXT REQUIRED EXPANDABLETEXT
    VALUENAME "Favorites"
    END PART
    END POLICY
    END CATEGORY


    Hope this helps

    Graham

  3. #3
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106
    If the above doesn't work then try and expand the environment variable using the correction function then concatenate that to your string.

  4. #4

    Join Date
    Jul 2009
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    can you elaberate more on the correction function,

    I tried that adm as well with the same resultes.

SHARE:
+ Post New Thread

Similar Threads

  1. folder redirection 'Favorites'
    By PEO in forum Windows Server 2008
    Replies: 15
    Last Post: 29th April 2009, 11:53 AM
  2. Folder redirection problem mandatory profile
    By imiddleton25 in forum Windows
    Replies: 1
    Last Post: 9th February 2009, 10:09 AM
  3. Folder Redirection Problem
    By Gonk in forum Windows
    Replies: 9
    Last Post: 7th February 2008, 04:51 PM
  4. Replies: 10
    Last Post: 14th August 2007, 07:03 PM
  5. Folder Redirection and Permission problem
    By ArchersIT in forum Windows
    Replies: 8
    Last Post: 24th July 2007, 09:02 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
  •