locked
Home Directory Renamed in Window 7 RRS feed

  • Question

  • Hello

    On the issue of home directories being renamed when documents are redirected in Windows 7 because of the Desktop.ini

    I am thinking it is being renamed to Documents because the redirected folders name is Documents

    My thought is that if we could change the redirect folder to the users log on name even if the home folders name is changed we can still tell who it belongs to with out having to delete or modify permissions on the Desktop.ini

    Is it possible to create a script that we can attach to the users log on script or put in the start menu of All Users that will change the name of the Documents folder to the name of the user loged on?

    If it is possible would it be possible to just get the first name of the user
    i.e our users nameing convention is first.last
    so somehow get everything left of the dot

    Let me know if this makes any sense at all..

    Thanks

    Wednesday, October 26, 2011 8:00 PM

Answers

  • Windows manages those folders and won't let you change them in most cases.  YOu do not want to rename the folders or many things in Windows wil either stop working or behave in unusual ways.

    Why do you want teh user name twice.  Are you trynin gto displa ythe users name on the desktop by naming the folder?  Bad idea.

    There is a widget that will display user info on the desktop.  That is how we would do this in Vista and later.

     

     


    jv
    Thursday, October 27, 2011 5:01 PM

All replies

  • I think you fail to undersatnd what is happening in 'redirection'

    When we redirect we usae %username% to specify the targer folder.  This name is guaranteed to be unique across a domain.

    Folder redirection and logon scripts are mutually exclusive.  The do different things for different reasons.

    I suggest studying how Group Policy does its thing and how to make folder redirection work for you.

     

     


    jv
    Wednesday, October 26, 2011 11:34 PM
  • Thank you for your reply

    My question is not one of Group Policy or redirection but has to do with how Windows 7 renames the home folder

    this thread explains what I am talking about

    http://social.technet.microsoft.com/Forums/en/winserverGP/thread/117d291f-4a2c-434e-ae6c-ee1ca52c33e7

    My question is about a possible solution to the issue

    I have tried to make a script that will rename the Documents folder but I don' think I fully understand the way the library's work in Win7

    The script I have does rename folders but if I use it to try and rename C:\users\myname\Documents or My Documents it does not work

    Here is what the script looks like
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.MoveFolder "C:\users\myname\Documents" , "C:\users\myname\myname"

    My thought is that if we could change the redirected folders name to the users log on name even if the home folders name is changed we can still tell who it belongs to with out having to delete or modify permissions on the Desktop.ini

    Hope this makes more sense..

    Thursday, October 27, 2011 4:48 PM
  • Windows manages those folders and won't let you change them in most cases.  YOu do not want to rename the folders or many things in Windows wil either stop working or behave in unusual ways.

    Why do you want teh user name twice.  Are you trynin gto displa ythe users name on the desktop by naming the folder?  Bad idea.

    There is a widget that will display user info on the desktop.  That is how we would do this in Vista and later.

     

     


    jv
    Thursday, October 27, 2011 5:01 PM