changing mapped drive paths for users

J

jason

Dear all

we are running windows 2000 svr and I need to have my
users mapped networked drives repointed to a different
server when the log on.

I have written a .BAT file called login.bat, to map this
drive using the NET USE command, this batch file works
fine and well when executed localy, and the drive is
mapped and visible in my computer, however when i place it
in to the folder
%SYSTEMROOT%\SYSVOL\sysvol\<domain name>\scripts on the
server and add
%SYSTEMROOT%\SYSVOL\sysvol\<domain name>\scripts\login.bat
to the logon script section of my user propertys in AD
when i log on the drives are not mapped. It seems like
the .bat file is not being called correctly, does anyone
have any ideas..??
TY
Jason
 
G

Gerry Hickman

jason said:
mapped and visible in my computer, however when i place it
in to the folder
%SYSTEMROOT%\SYSVOL\sysvol\<domain name>\scripts on the
server and add
%SYSTEMROOT%\SYSVOL\sysvol\<domain name>\scripts\login.bat

I don't know, but on my network the script would be placed as above, but
the mapping in each user's account would be simply written as

'login.bat'

without the path.

You have to first ask yourself if logon scripts have EVER worked on your
network, if not you have to start by testing on your own account with a
file that does something really dumb like echos some text to c:\test.txt

If that works you can move on to drive mappings.
 
K

Ken B

Try just putting the script in:
\\domainname\netlogon... it'll get copied around to where you need it. Just
set the user login script on their user object to "login.bat" or whatever
you name it---no paths, as it knows to look in netlogon for login scripts
for user account objects

HTH

Ken
 
G

Gerry Hickman

Ken said:
Try just putting the script in:
\\domainname\netlogon... it'll get copied around to where you need it. Just
set the user login script on their user object to "login.bat" or whatever
you name it---no paths, as it knows to look in netlogon for login scripts
for user account objects

Sounds similar to what I was saying, but isn't "netlogon" the 'old'
location for this (NT4), and "sysvol" is the 'new' (Win2k AD) location?
 

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