When I run a net user command to set users home directory, the drive letter in the profile says Z.
I'm doing this:
net users username /homedir:\\server1\sharename /domain
How can I make the drive letter for the home directory go to H?
In any login script you create, you could use the environment setting "Homedrive". This sets the drive letter.
You could say:
'homedrive=H:'
This would work in conjunction with the 'homeshare' variable, which would define the network path for your homedrive.
Your homeshare variable would look like 'homeshare=\\server1\sharename'
I know this is a pain, since this setting needs to be put in place within the user's own context, unlike the rest of your script. Anyone else know a better way?
In the User Manager for Domains select all the required users. Navigate to their properties, click Profile and in the Home Directory section there will be two options: Local Path and Connect. Change the "Connect" from the default Z to H. This should solve your problem.
I have over 400 existing users that need home dirs. It is too time consuming, and wrist wrecking to click thru user manager for domains to make the drive letter change. Using %username% only works if the homedir is not shared. There is no way, I know of, to append a dollar sign to that variable within user manager.
I read there is an undocumented switch or something that allows you to specifiy the drive letter of the /homedir option.
Create a USERS folder and share it to all domain users.
Select all the relevant users in UMD. File Properties. Change the home directory letter, set the home directory to \\servername\users (the one you did above). Create a login script that has the
net use h: /home
All the directories will be created for you with the right permissions. Everything is done. No aching wrists (well, not connected with the above anyway).
You can use CUSRMGR, a Win2k reskit utility. CUSRMGR can change the drive letter of existing user home dirs, and do other stuff as well. It works on nt4 and win2k. Don't know about xp.
The command interpreter (command prompt) is much more powerfull than umfd. Using batch files and reskit utilities can practically automate most user admin tasks.
you can go to user manager and select all the users at the same time.(the same way you would select multiple files)
then go to properties and change the "z" to "h". you only have to do it once because all the users are selected. then use your "net use" command in your log in script.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.