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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map drive in login script

Status
Not open for further replies.

hmont

MIS
Apr 10, 2003
8
US
Is their a way to map a non novell drive in the login script. Our office added a snap server for archiving data and rather than map a drive to that server on everyones machine via windows, would like to add it to our login script. I have tried this:

MAP Y=:\\SNAPSERVER\FOLDER

This didn't work. Is it possible to do this and what is the correct sytax? Our login script is currently at the container level.

Thanks
 
The colon is in the wrong place! It should be:
MAP Y:=\\BLAHBLAH

Also, in the snap server you should enable Novell services so that it will show up as a Novell server.

If the login script mapping does not work you can use the Netware Services utility tray Icon to do a Novell map and enable the box to reconnect every time the PC boots.

JON
 
Ok I have it as:


MAP Y:=\\SNAPSERVER\FOLDER in the login script

While logging in this is what i see in my login script result window:

SNAPSERVER
LOGIN-4.21.15-890: The specified server is unknown.
LOGIN-4.21.15-430: The following drive mapping operation could not be completed.
[Y:=\\SNAPSERVER\FOLDER]
The error code was 89ff.

I have Novell enabled in the snapserver config.
 
On Novell the mapping works like this:
MAP R:=SERVER\VOLUME:FOLDER
Most mappings are just to the volume. If you want to map a specific folder than the better way is to use:
MAP ROOT R:=SERVER\VOLUME:FOLDER
This will prohibit the user from browsing up to the root of the volume.
In my example notice the colon, that is the thing that you might be missing. In your example is the FOLDER entry set up as a share? It needs to be. That equates to a Novell Volume.
 
I forgot to mention that in Novell there is not any leading \\. They don't use them.
JON
 
Ok here is the latest!!
Error while logging in:
LOGIN-4.21.15-400: A network drive cannot be mapped to a drive
that is designated as a local drive.
[Y:=SANPSERVER\FOLDER]

Here is how its set up:
MAP Y:=SNAPSERVER\FOLDER

This folder is shared I can map do this location by right clicking on my netware services icon in sys tray and map novell network drive by browsing entire network, my work group, and selecting that machine and the folder inside. Why am I unable to do this in the login script?
 
OK, I think I know. The folder you are mapping to is the share right? Or in Novell it would be a Volume? then the mapping needs a colon at the end. SO:
MAP Y:=SNAPSERVER\FOLDER:
Like one of mine:
MAP J:=DEVL\SYS1:
 
Or if you want to map to the root of a directory:

MAP ROOT Y:=SERVERNAME/VOLUME:DIRNAME\DIRNAME2

for example. -----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
I'm not sure why this isnt working. I have no problem mapping these with windows. I would rather do this in the login script vs sitting at everyone machine.

Here is what I have done:

MAP Y:=SNAPSERVER\FOLDER:
MAP Y:=SNAPSERVER\ROOT:FOLDER
MAP Y:=SNAPSERVER/FOLDER:
MAP Y:=SNAPSERVER/ROOT:FOLDER

Still getthing the error on login
LOGIN-4.21.15-400: A network drive cannot be mapped to a drive
that is designated as a local drive.
The error code was 89ff
 
Are you sure that Y: isn't already mapped as a search drive?
 
Good point Lawnboy!!
Try moving the drive letter up to M: or O:, somewhere around there.
JON
 
In the login script we are only mapping to a single novell server, this will be my first non novell mapping in the login script. Right now in the login script the following drives are mapped:

Drives A,C,D,E map to a local disk.
Drive F: =
Drive S: =
Drive T: =
Drive U: =

Nothing is mapped in windows to Y either.
 
Are you sure? Novell always maps search directories. They usually take the bottom 6 letters. Go to a command prompt and type MAP to see what all the drive mappings are.

JON
 
Nope the only network search drive is Z: all the rest are local.
 
Well, OK. But did the MAP command list a Y: drive mapping? Especially if it is a local drive mapping, since that is the error you are getting. Novell does map local drives for searches. It uses the path statement for info.

JON
 
What operating system are you using? -----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
Try this: TID10024207 from Novell's site.
This shows you how to put a "Net Use" statement in a login script.
 
I got that TID to work. what I put in the login script is:

#NET USE S: \\WindowsNetBiosName\SharedFolder

Notice the "#" at the beginning, and the space between S: and \\.

HTH (it's a slow Friday here)
 
Great to see that works, I use a Snapserver also. I will try to remember this. :)

JOn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top