Re: Logon Scripts

From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 02/18/05


Date: Fri, 18 Feb 2005 21:13:07 +1100


"Steve" <msn@yahoo.com> wrote in message
news:eDwYrwZFFHA.548@TK2MSFTNGP14.phx.gbl...
> 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.



Relevant Pages