Discussion Locked

login scripts

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
hi! I am trying to use login scripts in windows NT server 4.0. The clients are windows 98. How do i write and implement login scripts so as to give the users a drive letter pointing to their home directory??????

12 replies

by timwalsh

An easier way (than learning how to write scripts)(if you don't have a large number of users) might be by assigning a home directory through User Manager for Domains.
In the same window where you assign Log-on scripts to individual user profiles (User Manager for Domains | User Properties (for each user) | Profile; at the bottom of the window is a box labeled Connect.
If this is checked you can assign a drive letter and enter a path in the format \\servername\sharename (where sharename isthe user's home folder). This will automatically be mapped each time a user successfully logs-on to the domain. The down side is you must do this for each user.
Hope this helps.

by felipe

An easy way to write a login script is: write a batch file called logon.bat and save it in \\server\netlogon folder. In this logon.bat file add the lines "net use p: \\server\personalfoldername" this is an example. Go to "user manager for domains",user setup screen,second tab,login script. type the name logon.bat in the script field. save and exit. When the user logins in again, he/she will see a very quick login script file in upper left corner of screen. Hope this helps.

by gperrie

Remember if you use the logon scripts described above and you have BDCs as well as PDCs that you should setup replication for the logon script folder to ensure users run the logon script every time

Gavin

by curlergirl

If that's all you want to do:

1. Create a text file on your PDC in the \Winnt\system32\repl\import\scripts folder (this is seen on the network as a shared folder called NETLOGON). You can use the WINNT accessory Notepad to create this file. Save it with the name: logon.bat (make sure NOT to let Notepad add the .txt extension).
2. In the logon.bat file, put the following line:

net use [driveletter]: /home

3. In User Manager, edit all users and type the logon.bat file name into the Login script name: box on the Profile tab. Also make sure that each user's home directory is correctly specified on the Profile tab under the Home Directory section.

4. The login.bat file has to reside on all domain controllers in the \winnt\system32\repl\import\scripts folder. If you have a large network with many domain controllers, you can set up file replication so that this file is automatically copied to all other domain controllers. If you have only a few domain controllers, simply copy and paste the file into that folder on each of them.

Hope this helps!

by curlergirl

PS - Unfortunately just specifying a drive letter under User Manager for the home directory does not work for Win9x workstations - only for WINNT/Win2K/WinXP. That's why you need the login script in addition to specifying the home directory name inUser Manager.

This discussion is closed to new replies.