Login Script ?s

  • Thread starter Thread starter OregonSteve
  • Start date Start date
O

OregonSteve

Greetings-

Migrating from NetWare to Windows Server 2003... We need to map drive
letters to specific shares for numerous groups.
1) What is the best tool to use to create Login Scripts? Will a simple
batch file do the trick? We will be using ADs Group Policies.
2) What is a good resource to get login script commands, switches,
variables, etc.

Thanx
OregonSteve
 
Hi,

The best tool for this, in my opinion, is notepad. There are a gazillion
command line utilities, I could never begin to list them all.

The syntax for mapping drives (that I use) is this:

net use DriveLetter: \\ServerName\ShareName /persistent:no

To map U: to \\FileServer\ShareOne, I'd use

net use U: \\FileServerOne\ShareOne /persistent:No

The /persistent:no tells windows to unmap the drive when the user logs off.
If you wanted to map drives on a user specific basis, you could do something
like:

net use U: \\FileServerTwo\%Username% /persistent:no

This will map U: to a share with the same name as the currently logged on
user.

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

Http://www.briandesmond.com
 
Back
Top