Discussion Locked

login scripts in NT 4.0

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hello there
I have just installed NT 4.0 server (service pack 5) on the network. Since I am migrating from Novell 3.12; the users want say drive g: mapped to their personal excel directory etc. I have used the net use commands; however, it seems when a user on windows 95 client logs on ; the %USERNAME% command ( to specify the user name) does not work and the drive is not mapped .

Is there any way work around this? Please advise

13 replies

by nichomach

NT does not support deep redirections i.e. mapping to points below the share point, hence there is no "map root" equivalent. I generally have to create a hidden share for each user's home directory and map to that (you create a hidden share by adding $ to the end of the name, hence \\server\myshare$). I then use KixTart to handle my drive mappings, available from http://netnet.net/~swilson/kix.html. This was originally distributed with the NT4 resource kit. The alternative is to create shares which will hold a number of users' home directories and get them to browse, but I'd guess you're trying to avoid that. %USERNAME% doesn't work on 95, but you can use user and group dependent mappings via KixTart, which is I reckon absolutely essential for NT Admin work.

by Member 19637514

There are 2 steps to adapt %USERNAME% command:

Suppose your Server spec are:
- Server name : svrname
- User drive : U:- User directory : \\svrname\users
- User name : Robert

Follow these steps:
1. On User Manager, double click the user.
2. Click Profile button.
3. In Home Directory, fill Connect with U: and To with \\svrname\users\robert
4. Fill Logon Script name with Default (it means \\WINNT\SYSTEM32\Repl\ImportDefault.bat)
5. Make Default.bat and fill it with "Net Use U: \\sksvr\users /HOME"

by dale

NT clients can get the equivalent of a map root with the SUBST command, but this is not supported for Windows 9X clients, for them, you'll have to do the hidden share thing. This is no big deal, though... just share each directory as the same name only with a $ at the end.

Example:

directory name - Dave
hidden share name - Dave$

You control access to the directory with NTFS rights, you could give Authenticated Users Full Contol at the share level, though probably you will only give Dave Full Control and also the Domain Administrators group.

Once this is done, you can net use the hidden share:

net use h: \\server\Dave$

I hope this helps...

Dale Holmes

by kahana

the proper answer is the one with user manager , conect to , net use home . I have been using it for over two years.
You can also change all the users at once by selecting more than one user in the user manager ( with control or shift and a mouse click) and then from the file menu -> properties change their settings and mark connect to \\servername\%username%$ then the %username% will work.

This discussion is closed to new replies.