Discussion Locked

Login Script

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Hi! Guys, we have a win2k 2000 server with 8 win2k pro. Client?s have a shared folder in my server and what I deed is map that shared folder in every client manually. What I understand that you can create a login script and put it in AD so that I well not map manually. The problem is I don?t know how to make a login script any body of you can give me a sample of a login script...thanks.

8 replies

by craig it mangaer

You may want to keep it simple and do the following. create a batch file and place it in the sysvol\domain\scripts directory. then go into the user setup and go to the profile tab and add the logon script to be run at startup. It's quick easy and you can create as many as you want using notepad. by doing the following:
open notepad
type the line: net use s: \\server\sharename
Save the file as logon.bat (make sure you change to all files for file types or you'll end up with a .txt file. you may also want to add
net use /persistent:no
so that it won't map to that drive or others next time the user logs on. That way if you change the share you won't have people connecting to the old one.

by joerie_b

Thanks csmith@..But the net use command is not working in NTFS format..What I deed is open notepad I type net use w:\\server\sharename, and save w/ name logon.bat, and I save it to c:\winnt\sysvol\domain\scripts directory. And I open active ?directory user and computer?-->>user-->>properties-->>profile in Logon Script I type %systemroot%\sysvol\domain\scripts is this right?.. I need to type anything in profile path?

This discussion is closed to new replies.