Windows NT Drive Mapping

M

Thread Starter

Mark Fairbaugh

I need to setup Windows NT4.0 to automatically map to a Novell Netware
server to transfer daily reports.
I can map the drive when I am logged onto the Novell Network use map.exe,
but I can not map it when I am not logged on. It asks for my user name and
then stops after I enter it.

Can anybody give me a command I can use to automatically login to Novell
(with my user name and password) then map the drive so that I can use the
drive to copy files to the server and then unmap the drive and log me out?

Thanks

Mark Fairbaugh
PT Newmont Nusa Tenggara
Sr. Process Control Engineer
e-mail: [email protected]
 
A

ANTONISHEN Robert -CMMRCL SYS

> Can anybody give me a command I can use to automatically
> login to Novell
> (with my user name and password) then map the drive so that I
> can use the
> drive to copy files to the server and then unmap the drive
> and log me out?

All you need is the net use command. From the help:

NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

An example for a Novell server (non-persistant, i.e. NT will not store the
mapping from session to session) would be:

net use J: \\Server1\Sys mypass /user:smithj /persistent:no

and to close the connection would be:

net use J: /delete

------------------------------------------
Robert Antonishen, P.Eng.
Sr. Engineer, IT Infrastructure
Commercial Systems - Commercial Operations
Ontario Power Generation
phone 416-592-1510 fax 416-592-7225
[email protected]
 
D
Another approach which I use is the AutoAdminLogon function in the registry
which assigns a default user name and password and allows the machine to blow by
the CTRL-ALT-DEL window and automatically login. I use this for machines we
develop with keyboardless applications. The mapping I normally do with the
technique described below. You can find more info from the Microsoft or Novell
sites on the AutoAdminLogon function. Be very careful using this function
because if it is not implemented properly will lock you out of the machine
permenantly. I normally set all of my machine administrators using the same name
and password to allow me to gain access thru the back door, then I set up a new
user name and password using AutoAdminLogon. If you can't access this info from
the Novell or Microsoft site E-Mail me and I can fax or scan it in and send it
to you.

Dale
 
Top