Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping to NT or Win2000

Status
Not open for further replies.

kdeans

IS-IT--Management
Apr 3, 2000
129
CA
Netware 4.11. Can I use the Novell login script to map to a directory on a Win2000 machine? What is the syntax?
 
I believe you can issue use the #net use command. Net use is the DOS command for mapping drives in NT. The pound (#) sign in the login script is used to execute an external program.
 
I have tried each of the following:

1. #NET USE H: \\SERVER\DIRECTORY password

2. @NET USE H: \\SERVER\DIRECTORY password

3. exit "C:\WINDOWS\MAP.BAT"
The batch file contains these lines:
NET USE H: \\SERVER\DIRECTORY password
CLS

Each of these results in the following error in the Dos Window:
Error 3787: You must log on before performing this operation.
(The batch file only shows it if you remove the CLS statement)]
The batch file works fine once you are logged on to Novell.
I have moved the net use statement around within the script.

I need to map these users to a directory on the 2000 server from their login script so that the mapping is user dependant and not workstation dependant. If I run this batch from the registry or startup, I will have all users mapped to the 2000 directory with full rights. If I let windows look after the mapping, the users will have to enter an extra password each time they reboot. Any ideas?
 
HI!

An alternative, if you have an NT/2000 DOMAIN (and not a stand-alone server),
then you check the
"Logon To Domain"
in "Client for Microsoft Networks"
in Network Properties
of your clients.

Then run the NT/2000 login-script from NETLOGON as well as Netware scripts.

Bye
Yizhar
Yizhar Hurwitz
 
I notice that whilst entering the NET USE command, you are not specifying a username. The usual command variables for that is:

#NET USE H: \\SERVER\DIRECTORY /USER:<username> <password>

This will only work on NT/2000 machines. If you are using 65/98, you will have to use the command below, ensuring that the username and password on the W2K server/domain are the same with that in the NDS:

#NET USE H: \\SERVER\DIRECTORY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top