I want to use the Net User command to create user accounts on a Windows NT 4.0 server, including setting the drive letter for each user account's home directory. I know that the /homedir switch sets the path, but this switch defaults to the Z drive. I remember reading an article that said you can use an undocumented option to override this default. However, I can't remember the option, nor can I find the article. Do you know how to invoke this undocumented option?
I'm not aware of an undocumented Net User option that you can use to set a user account's home-directory drive letter. Perhaps you're thinking of an option in Microsoft Active Directory Service Interfaces (ADSI). ADSI's WinNT: provider exposes the User object's HomeDirDrive property. You can use this custom property with Windows Script Host (WSH) to set a user account's home-directory drive letter. For example, the script in Listing 1 sets the home directory and home-directory drive for a user named WileE in the NT 4.0 domain called ACME.
If you prefer command-line utilities, you can use the AddUsers tool in the Microsoft Windows NT Server 4.0 Resource Kit. In addition, several shareware utilities provide the functionality for which you're looking. One such utility is Pukka International's NetUser. To learn more about this utility, go to http://www.pukka.com/products/default.asp?product id=nu1%2e0.