Answered by:
Home Directory Renamed in Window 7

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 dotLet 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- Proposed as answer by Richard MuellerMVP, Banned Wednesday, November 2, 2011 4:48 PM
- Marked as answer by Richard MuellerMVP, Banned Thursday, November 3, 2011 9:24 PM
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.
jvWednesday, 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
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- Proposed as answer by Richard MuellerMVP, Banned Wednesday, November 2, 2011 4:48 PM
- Marked as answer by Richard MuellerMVP, Banned Thursday, November 3, 2011 9:24 PM
Thursday, October 27, 2011 5:01 PM