Automatically Logon To Network Share

D

DavidM

I've just bought a 1Tb LaCie ethernet disk mini (NAS drive). It's set
up and working ok, and I've mapped the share to a drive letter
(including reconnect at logon). Problem is I have to enter the
password before I can access the drive.

My backup (to the NAS drive) programs run automatically the first
time each user logs into Windows each day, and I don't want to have to
logon to the share and then manually run them.

The Lacie drive won't allow me to create a share without a password.

How can I get an automatic logon to the network share when each user
logs in to Windows (in simple terms please - I'm not a networks whiz
by any means)?

(running XP home, SP2).

Thanks, David
 
J

John John (MVP)

DavidM said:
If the answer is in there I can't find it, or don't understand enough
about networking to recognise it?
Give us a clue maybe?

You might want to try using the NET USE command with the /SAVECRED
option the crate a persistent connection to the device.

Stored User Names and Passwords Feature Interoperability at a Command Prompt
http://support.microsoft.com/kb/287536

John
 
R

Roy Smith

DavidM said:
I've just bought a 1Tb LaCie ethernet disk mini (NAS drive). It's set
up and working ok, and I've mapped the share to a drive letter
(including reconnect at logon). Problem is I have to enter the
password before I can access the drive.

My backup (to the NAS drive) programs run automatically the first
time each user logs into Windows each day, and I don't want to have to
logon to the share and then manually run them.

The Lacie drive won't allow me to create a share without a password.

How can I get an automatic logon to the network share when each user
logs in to Windows (in simple terms please - I'm not a networks whiz
by any means)?


You might try using a program called Network Magic from Cisco Systems. It
makes managing a home network super easy for the average home computer user.
They have a fully functional trial version on the site so you can download
it and see if that's the right solution for you before you buy it.
 
D

DavidM

You might want to try using the NET USE command with the /SAVECRED
option the crate a persistent connection to the device.

Stored User Names and Passwords Feature Interoperability at a Command Prompt
http://support.microsoft.com/kb/287536

John
Thanks for the reply John.

According to the NET USE help text the /SAVECRED switch is not
available in XP Home edition. It certainly doesn't seem to work.

David
 
D

DavidM

I've just bought a 1Tb LaCie ethernet disk mini (NAS drive). It's set
up and working ok, and I've mapped the share to a drive letter
(including reconnect at logon). Problem is I have to enter the
password before I can access the drive.

My backup (to the NAS drive) programs run automatically the first
time each user logs into Windows each day, and I don't want to have to
logon to the share and then manually run them.

The Lacie drive won't allow me to create a share without a password.

How can I get an automatic logon to the network share when each user
logs in to Windows (in simple terms please - I'm not a networks whiz
by any means)?

(running XP home, SP2).

Thanks, David
Well, I've been able to find a solution, although it's a bit
"agricultural" (and maybe shows my age!).

I use a batch file with the command NET USE as follows:

@echo off
REM Wait for about 30 seconds then map network drive EDMINI\share to
dive letter N:
ping -n 1 -w 20000 192.168.1.96 >nul
net use n: \\EDMINI\share xxxxx /USER:yyyy
exit

The ping command inserts a delay of about 20 seconds after the batch
file is run and before executing the net use command. This allows time
after the user has logged on for the network connection to the drive
to get established. Apparently using the ping command is the least
resource use way of putting a delay in a batch file. I've used this
before with values up to 6000 (about 1 minute) and it seems ok.

The net use command then maps the share to drive n: using user name
yyyy with password xxxx.

I then created a shortcut for the batch file and inserted this into
the STARTUP folder in the Start\Programs menu for all users. The
shortcut properties are set to run the batch file minimsed.

If the share is already mapped when the batch file is run, the net use
command just reports an error, and the batch file continues to it's
natural end with no ill effects.

So far, this seems to be working reliably.

The main issue to be considered is that the user name and password are
in full view in the batch file. I've decided that I can live with this
risk, others may not, and maybe there's another way of doing this.

(from start menu/run type cmd, then in the command window type

net use /help

to get a full list of the net use command switches. Note that the
SAVECRED switch is not available in XP Home)

Hope someone finds this useful.

David
 

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