+ Post New Thread
Results 1 to 15 of 15
Wireless Networks Thread, application data Environment variables redirect in Technical; hi guys i want to redirect all students application data folder to there home folder under a folder called my ...
  1. #1
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17

    application data Environment variables redirect

    hi guys

    i want to redirect all students application data folder to there home folder under a folder called my settings.

    in the config for the application redirection what Environment variables do i need to put in?

    many thanks

    mark

  2. #2
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,010
    Thank Post
    196
    Thanked 42 Times in 34 Posts
    Rep Power
    30
    It'll be in the format:-

    \\servername\sharename\folder\%username%

    This will create a folder for each user with their user name as the folder name.

  3. #3

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,714
    Thank Post
    351
    Thanked 1,268 Times in 866 Posts
    Blog Entries
    4
    Rep Power
    1124
    Quote Originally Posted by OverWorked View Post
    \\servername\sharename\folder\%username%
    Was this what was being sought?

    I read it as creating an AppData called My Setting for each user. I think this might be possible under 2008 but I haven't played with it yet.

  4. #4
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17
    ok cheers, so if i already have the home folders created already the %username% variable will just much up to the home folder already there.

    e.g

    \\srv-files1\student-home$\%username%\My Settings

    would that work?

  5. #5

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,714
    Thank Post
    351
    Thanked 1,268 Times in 866 Posts
    Blog Entries
    4
    Rep Power
    1124
    @ful56_uk,

    Just to clarify are you using Server 2003 or Server 2008?

  6. #6
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17
    2008 server xp clients

  7. #7

    tmcd35's Avatar
    Join Date
    Jul 2005
    Location
    Norfolk
    Posts
    5,575
    Thank Post
    834
    Thanked 873 Times in 726 Posts
    Blog Entries
    9
    Rep Power
    324
    There are three or four options on how to handle a basic folder redirect.

    One is to a common folder for all users (think \\server\share\allusersappdata\)

    and another is to create a sub folder for each user. If you select this option the %username% folders are created automatically.

    So the format would be -

    \\server\share\rootappdatafolder

    this is what you put in the redirect box. But each users individual app data would be in

    \\server\share\rootappdatafolder\%username%\appdat a\


    EDIT:
    e.g

    \\srv-files1\student-home$\%username%\My Settings

    would that work?
    I think you'll only need

    \\srv-files1\student-home$\

    so long as you choose basic redirect and individual folders.
    Last edited by tmcd35; 27th July 2009 at 09:51 PM.

  8. #8
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17
    excellent cheers, so is not better to redirect the app data folder to there home folder?

  9. #9

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,714
    Thank Post
    351
    Thanked 1,268 Times in 866 Posts
    Blog Entries
    4
    Rep Power
    1124
    In that case I think it should be possible.

    I have a GPO creating folders for students at logon under 2008. However it is not the AppData folder and it the AppData folder is not being renamed as 'My Settings'

    If I get time I will look into it tomorrow [not saying that another Edugeeker won't come up with another answer!]

  10. #10
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17
    sorry may be i havent been clear, i dont want to rename the app data folder i want to store it under a user home dir under a folder called my settings, this is also were i got there favorites pointing to as well

  11. #11

    tmcd35's Avatar
    Join Date
    Jul 2005
    Location
    Norfolk
    Posts
    5,575
    Thank Post
    834
    Thanked 873 Times in 726 Posts
    Blog Entries
    9
    Rep Power
    324
    I'd guess that if your home folders are

    \\svr-files1\student-home$\%username%

    then using

    basic folder redirection with individual folders set to

    \\svr-files1\student-home$\

    would get individual app folder thus

    \\svr-files1\student-home$\%username%\appdata

    I'm afraid I don't know how you would move it to

    \\svr-files1\student-home$\%username%\my settings\appdata

  12. #12
    leco's Avatar
    Join Date
    Nov 2006
    Location
    West Yorkshire
    Posts
    2,026
    Thank Post
    595
    Thanked 125 Times in 119 Posts
    Rep Power
    41
    If you already have the path you have used for Favorites, can you not use the same one for their Appdata?

    tmcd35 - isn't it "Redirect everyone's to the same destination" ? Sorry not sure of exact wording. I have mine set much the same except they are not in the student's home folder. Also I'm guessing the the "my settings" might confuse the issue since there is a space in the name. 2008 doesn't like spaces I have found.
    Last edited by leco; 27th July 2009 at 10:04 PM.

  13. #13
    ful56_uk's Avatar
    Join Date
    Mar 2008
    Location
    Essex
    Posts
    554
    Thank Post
    105
    Thanked 23 Times in 21 Posts
    Rep Power
    17
    spaces, hhhmmm well i did try the favorites path that has spaces in it, ill try tomorrow with a new folder called settings and see if it takes it.

  14. #14

    tmcd35's Avatar
    Join Date
    Jul 2005
    Location
    Norfolk
    Posts
    5,575
    Thank Post
    834
    Thanked 873 Times in 726 Posts
    Blog Entries
    9
    Rep Power
    324
    Quote Originally Posted by leco View Post
    If you already have the path you have used for Favorites, can you not use the same one for their Appdata?

    tmcd35 - isn't it "Redirect everyone's to the same destination" ? Sorry not sure of exact wording. I have mine set much the same except they are not in the student's home folder. Also I'm guessing the the "my settings" might confuse the issue since there is a space in the name. 2008 doesn't like spaces I have found.
    AFAIR (I'm at home and not in front of my server setting ) their are three or four options on a pull down list for basic folder redirections.

    one is "Redirect everyone's to the same destination" - and I'm pretty sure that is 1 single appdata folder which everyone shares.

    and another is some wording on "individual folders" - which is the same as above but creates individual appdata folders for each user within the given path.


    As for server 08 not liking spaces - have you tried encasing the path in quotes -

    "\\server\share$\my path"

  15. #15
    leco's Avatar
    Join Date
    Nov 2006
    Location
    West Yorkshire
    Posts
    2,026
    Thank Post
    595
    Thanked 125 Times in 119 Posts
    Rep Power
    41
    Yep your recollection is correct there is a drop down. However, you can put in a path of your own choosing with Redirect everyone's ... putting in %username% type variables. Not tried putting the whole path inside quotes, might do so in future. I resorted to using single words for mine. Thanks for the suggestion.

SHARE:
+ Post New Thread

Similar Threads

  1. Environment Variables Again
    By Reaper in forum Scripts
    Replies: 2
    Last Post: 19th February 2009, 04:45 PM
  2. using variables in wget etc
    By RabbieBurns in forum *nix
    Replies: 6
    Last Post: 31st July 2008, 09:23 PM
  3. Redirecting Application Data and other things
    By Chuckster in forum Windows
    Replies: 1
    Last Post: 30th July 2008, 08:54 PM
  4. Replies: 6
    Last Post: 7th December 2006, 07:25 PM
  5. Environment variables or other method
    By HodgeHi in forum Scripts
    Replies: 3
    Last Post: 21st June 2006, 09: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
  •