+ Post New Thread
Results 1 to 15 of 15
Windows Thread, Redirecting Favorites Problem in Technical; I've had a look at some of the previous postings on this subject, but being new to vanilla networks I ...
  1. #1
    Andie's Avatar
    Join Date
    Sep 2006
    Location
    Cambridgeshire
    Posts
    794
    Thank Post
    167
    Thanked 66 Times in 49 Posts
    Rep Power
    30

    Redirecting Favorites Problem

    I've had a look at some of the previous postings on this subject, but being new to vanilla networks I am struggling with this one. Answers will need to be very step by step! Apologies if some of the information given below is unecessary.

    I have a VBScript which is used to redirect Favorites to a folder in the user's My Documents called Favourites. This is used as a login script in Group Policy (User Configuation>Windows Settings>Scripts>Logon) All our pupils log in with one username for their class (primary school setup, I know!!! ). Teachers log in with their own username. The problem is that sometimes the Favorites are redirected and sometimes the Favorites is just empty when the users log on. I have just retested this with four computers logged on as one year 3 class: two had redirected favorites and two had none. When Favorites are showing, it is definitely the redirected one and not one from somewhere else.

    However, I've recently discovered that, in the share on the server, but outside of the student or teacher area, a My Documents has appeared containing only Favorites. When I tested a teacher user, they got that Favorites and not the one from their own My Documents. I have no idea where this has come from!

    We have mandatory profiles for teachers and pupils. My Documents is redirected to a share on the server by group policy under User Configuration>Windows Settings>Folder Redirection>My Documents>Basic; one policy for teachers and another for pupils. In Active Directory, in the Properties of the user in the Profile tab, the Home folder is connected to S: with a path to the same shared area on the server. But as far as I can tell, drive S: isn't mapped elsewhere on the server.

    I am going round in circles with this one! If anyone can suggest some more tests that will narrow the problem down that would be great. I don't want to publish the script as I didn't create it, but I can pm it to someone if they are willing to take a look.

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 768 Times in 598 Posts
    Rep Power
    181

    Re: Redirecting Favorites Problem

    At first sight, it appears as if your script is creating the 'Favourites' folder in the wrong place. Check the path name.

    Might also be helpful to post your script.

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,667
    Thank Post
    659
    Thanked 1,625 Times in 1,454 Posts
    Rep Power
    422

    Re: Redirecting Favorites Problem

    Yes please post your script as it will be handy to people that give students mandatory profiles but may want them to keep their favourites.

    Ben

  4. #4

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740

    Re: Redirecting Favorites Problem

    I have two scripts which aid in our mandatory profiles. One is run when a user fires off IE:

    ; AutoIt Version: 3
    ; Language: English
    ; Platform: WinXP
    ; Author: Matt Marsh
    ; Script Function: Bookmark Programe - Logon Script

    If FileExists(EnvGet("USERPROFILE") & '\Favorites\st johns homepage.url') Then
    FileCopy('N:\Favorites\*.url', EnvGet("USERPROFILE") & '\Favorites', 1)
    Else
    FileCopy('\\stjohns01\apps\Favorites\st johns homepage.url', EnvGet("USERPROFILE") & '\Favorites')
    EndIf

    Exit
    The N: drive is the users home directory. This will check for a URL, if it is there then it will copy all the files in it to the users profile so any urls they have saved they can view.

    The logoff script runs when they close IE:

    ; AutoIt Version: 3
    ; Language: English
    ; Platform: WinXP
    ; Author: Matt Marsh
    ; Script Function: Bookmark Programe Logoff Script

    If FileExists('N:\Favorites\st johns homepage.url') Then
    FileCopy(EnvGet("USERPROFILE") & '\Favorites\*.url', 'N:\Favorites', 1)
    Else
    DirCreate('N:\Favorites')
    FileCopy(EnvGet("USERPROFILE") & '\Favorites\*.url', 'N:\Favorites', 1)
    Endif
    Exit
    When run [ when the user closes IE ] this will copy over any URLs they have added to their favorites, so next time they logon to a different PC the first script will run and will copy over the URLs.
    I hope this makes sense.

    Both are AutoIT Scripts and will need compiling into exes. How you get these to run before IE launches & closes is up to you.
    I hope this helps - it may give you a clue or idea how to solve your problem.

  5. #5

    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: Redirecting Favorites Problem

    It may just be easier to point favorites to the folder on the N drive - that way you don't have to worry about catching IE launching/closing (eg would your script run when someone just clicks on a link in Word etc)

    We use the following in a login script

    set oShell =createobject("wscript.shell")oShell.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Ex plorer\User Shell Folders\Favorites","%homeshare%\favorites","REG_EX PAND_SZ"

    this makes sure that favorites is always going to be the folder "favorites" on the user's home drive

  6. #6
    Andie's Avatar
    Join Date
    Sep 2006
    Location
    Cambridgeshire
    Posts
    794
    Thank Post
    167
    Thanked 66 Times in 49 Posts
    Rep Power
    30

    Re: Redirecting Favorites Problem

    Thanks, folks. Have been out of it for a day - picked up a tummy bug from my son - and am still off work. But will have a look in detail at your suggestions when back on Monday. Head still a bit muzzy due to lack of food. Looks like there may be some good things to try, so thank you for your help so far.

    Did wonder why the script seemed to work sometimes and not others, though. Wondered if maybe it was because we log in a whole class with the same username, and maybe the system can't cope.

    Will post script if necessary. Watch this space!

  7. #7

    Join Date
    May 2006
    Location
    Leicestershire
    Posts
    345
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Redirecting Favorites Problem

    Hi Andie

    I found this AD Template when i was searching around..... and i think it will help with the redirection of faves.....

    Ive not tested this out as yet, but am going to do so in a little while, i will feed back on this....

    but for anyone who wants to give it a shot here is the link

    AD Template

    Niraj

  8. Thanks to Nij.UK from:

    SYNACK (25th July 2009)

  9. #8

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740

    Re: Redirecting Favorites Problem

    Thanks for the link to that AD template - I may try that out - I can then dump the script I wrote !!
    Its done its job, been going for 2 years ish - not bad and I have had no complaints....

  10. #9
    Andie's Avatar
    Join Date
    Sep 2006
    Location
    Cambridgeshire
    Posts
    794
    Thank Post
    167
    Thanked 66 Times in 49 Posts
    Rep Power
    30

    Re: Redirecting Favorites Problem

    I'd be interested in the results of your tests on the AD Template. I don't have any test facilities here, so trying things out can be a bit dicey. I've never used a template before, but it looks like the link covers some instructions on how to use it too. (Brain beginning to function a bit now, after rice krispies and toast!).

  11. #10
    Andie's Avatar
    Join Date
    Sep 2006
    Location
    Cambridgeshire
    Posts
    794
    Thank Post
    167
    Thanked 66 Times in 49 Posts
    Rep Power
    30

    Re: Redirecting Favorites Problem

    OK, here's the script that is currently used as a login script for pupils and teachers:

    'Favourite Folder creation - creates folder in users home area
    'The script below is for a LAN with a "My Docs" redirect GPO, but %username% could be used
    'Please note the different spellings of 'favourites/favorites'

    On Error Resume Next
    Set fs = CreateObject ("Scripting.FileSystemObject")
    Set foldr = fs.CreateFolder ("S:\My Documents\Favourites")
    On Error Resume Next
    Set WSHShell = nothing


    'Fav Folder redirection

    Dim Path
    Path = "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Explorer\User Shell Folders\"
    set ws = WScript.CreateObject("WScript.Shell")
    o=ws.RegWrite(Path & "Favorites", "S:\My Documents\Favourites","REG_EXPAND_SZ")
    v=ws.RegRead(Path & "Favorites")
    Set WSHShell = nothing

    The My Documents is redirected by GPO to the following path:

    Path: \\MS-LNM-SERVER\user data\students\%USERNAME%\My Documents

    In the user Properties, for each pupil and teacher user, on the Profile tab, is the following entry in the Home Folder section:

    Connect: S: To: \\Ms-lnm-server\User Data\Students\username

    where the username is the actual username, not a variable.

    Also may be worth pointing out that we have a mixture of XP and Win2k workstations here, running on Server 2003.

  12. #11
    Andie's Avatar
    Join Date
    Sep 2006
    Location
    Cambridgeshire
    Posts
    794
    Thank Post
    167
    Thanked 66 Times in 49 Posts
    Rep Power
    30

    Re: Redirecting Favorites Problem

    Hi, folks. I have done a bit of comparing the script I have, which may or may not be the cause of my problem, with the scripts others have posted here. Although there are common elements, they all seem different. I have no knowledge of scripting languages, so can't tell if mine is faulty or not based on what I can see here.

    If no one can spot anything obvious, I guess i will have to hope that someone will get time to check out the ADM template and report back.

    Thanks to all who have helped so far.

  13. #12

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,822
    Thank Post
    1,476
    Thanked 593 Times in 445 Posts
    Rep Power
    168

    Re: Redirecting Favorites Problem

    How you get these to run before IE launches & closes is up to you.
    Now - lets not have any secrets here please

    How do you do it?

    regards

    Simon

  14. #13

    Join Date
    Jan 2007
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Redirecting Favorites Problem

    Quote Originally Posted by Andie
    If no one can spot anything obvious, I guess i will have to hope that someone will get time to check out the ADM template and report back.
    Andie, I'm the one who wrote the ADM and I have deployed it for quite a few of my customers without issues - all it does is to alter the registry and nothing more. Just make sure you wisely choose the scope to which the GPO will be linked to and you will be ok. If you have any issues, drop me a line or PM me (I am not monitoring this forums - sorry).

    Cheers,
    Guy

  15. #14
    projector1's Avatar
    Join Date
    Nov 2005
    Posts
    460
    Thank Post
    70
    Thanked 1 Time in 1 Post
    Rep Power
    18

    Re: Redirecting Favorites Problem

    just to say that i have tested the adm file (got it from petri's forum)
    and it is working!
    users are able to roam and have there favourites follow

  16. #15
    Andi's Avatar
    Join Date
    Feb 2007
    Location
    Newport, South Wales
    Posts
    276
    Thank Post
    52
    Thanked 4 Times in 4 Posts
    Rep Power
    16

    Re: Redirecting Favorites Problem

    I too have been using that redirect adm file. I can't remember where I got it from now.

    Works a treat.

SHARE:
+ Post New Thread

Similar Threads

  1. Redirecting desktop
    By chrbb in forum How do you do....it?
    Replies: 9
    Last Post: 17th November 2010, 02:30 PM
  2. redirecting my documents
    By chrbb in forum Wireless Networks
    Replies: 7
    Last Post: 7th November 2007, 01:55 AM
  3. Redirecting My documents
    By faza in forum Wireless Networks
    Replies: 15
    Last Post: 9th October 2007, 01:17 PM
  4. Staff favorites folder.
    By Ste_Harve in forum How do you do....it?
    Replies: 11
    Last Post: 13th September 2007, 09:07 AM
  5. Online Favorites
    By edie209 in forum General Chat
    Replies: 9
    Last Post: 12th September 2007, 08:05 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
  •