Newbie in AD

  • Thread starter Thread starter Patriot
  • Start date Start date
P

Patriot

Can someone please help me walkthrough in how to create a login script and
apply it to user's account. I am looking for the syntax. Also how do I add a
mapping drive in user's profile. what is the syntax.

Thanks a lot any help
 
Hi,

Logon scripts can do alot of things, but I'm only going to cover mapping a
drive, since that's what you mentioned.

The net use command is for mapping a drive: NET USE DriveLetter:
\\ServerName\ShareName

I generally tag a /persistent:no >nul on the end to. This tells windows not
to show the results of the command, and to unmap the drive on logoff. For
example, to map U: to ShareABC on FileServerZ, I'd do:

NET USE U: \\FileServerZ\ShareABC /persistent:no >nul

For your logon script, you want to create a text file with a .bat extension
and drop your commands in. Afterwards, open up the netlogon share on a
domain controller, and drop the batch file you just made in.

Finally, open the users account in AD USers & Comps, goto Profile, and put
the name of hte batch file under logon script (i.e. myscript.bat).



--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
Thanks a lot for your help
Brian Desmond said:
Hi,

Logon scripts can do alot of things, but I'm only going to cover mapping a
drive, since that's what you mentioned.

The net use command is for mapping a drive: NET USE DriveLetter:
\\ServerName\ShareName

I generally tag a /persistent:no >nul on the end to. This tells windows not
to show the results of the command, and to unmap the drive on logoff. For
example, to map U: to ShareABC on FileServerZ, I'd do:

NET USE U: \\FileServerZ\ShareABC /persistent:no >nul

For your logon script, you want to create a text file with a .bat extension
and drop your commands in. Afterwards, open up the netlogon share on a
domain controller, and drop the batch file you just made in.

Finally, open the users account in AD USers & Comps, goto Profile, and put
the name of hte batch file under logon script (i.e. myscript.bat).



--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com


add
 
Brian,
Do I add the command NET USE U:\\fileserver\share under user profile in AD
user & computers or from the command prompt.

Thanks
 
Paste it into your batch file, and then put that batch file in the netlogon
share, and finally, put the name of the batch file in each user's profile.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
Back
Top