Logon Scripts

S

Steve

Here is the scnerio.
one domain controller and 50 clients.
50 users.
Domain is working well no problem.
Now i assign home directories to users. OK

All i want is that when users logon to to the domain every time they get
thier home directory mapped to them in My Computer.
I heard we can do that with login scripts. but i dont know how to do that.
tried google search and found nothing usefull. Any body can give me an
example of creating login scripts for mapping drives. i mean what is the
coding and where to place that coding.
Thnaks
 
P

Pegasus \(MVP\)

Steve said:
Here is the scnerio.
one domain controller and 50 clients.
50 users.
Domain is working well no problem.
Now i assign home directories to users. OK

All i want is that when users logon to to the domain every time they get
thier home directory mapped to them in My Computer.
I heard we can do that with login scripts. but i dont know how to do that.
tried google search and found nothing usefull. Any body can give me an
example of creating login scripts for mapping drives. i mean what is the
coding and where to place that coding.
Thnaks

Place these lines into your logon script:

@echo off
net use /persistent:no > nul
net use P: \\YourServer\%UserName%

The script assumes that you have created a share \\YourServer\Steve
for the user who logs on under the logon name of "Steve".

To make it work you need three things:
1. Save the above batch file as "netlogon.bat" (or any other suitable name).
2. Place it into the share \\YourServer\Netlogon.
3. Specify its name in each and every account profile in the "Logon Script"
field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top