Automatically login 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
 
T

Twayne

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

I was looking at that same drive recently - it was
the first time I'd come across an ethernet styled
external drive. I ended up taking a pass on it
because of a worry about the very situation you
describe, plus not having anything better than
10/100 ethernet capability, but I didn't try to
ask any questions directly of them and instead
moved on to the USB type because I was in a hurry.
I suspect from what I read online, you'd have
to find your answer either in their FAQs onilne,
or by asking them directly at Support. I need and
want unattended operation whenever I decide to
enable the drive, so I took a pass on it, but, for
future use I hope you'll post your resolution when
you get it.

I couldn't wait as my current external drive
has gone belly up (a Western digital) after about
2 years of use from, I think, a lightning hit one
literally sunny afternoon<g> when a background
incremental backup decided to run. Took out my
voice modem too, but unfortunately I seldom use
it, so not much loss there, and so far everything
else seems OK. It did fry the protection on the
modem & blew the line fuses though. And my
secondary external is only 160 Gig, so eventually
I want to replace it with a 1 Terabyte drive too.

Hope you'll keep us posted,

Twayne
 
D

DavidM

I was looking at that same drive recently - it was
the first time I'd come across an ethernet styled
external drive. I ended up taking a pass on it
because of a worry about the very situation you
describe, plus not having anything better than
10/100 ethernet capability, but I didn't try to
ask any questions directly of them and instead
moved on to the USB type because I was in a hurry.
I suspect from what I read online, you'd have
to find your answer either in their FAQs onilne,
or by asking them directly at Support. I need and
want unattended operation whenever I decide to
enable the drive, so I took a pass on it, but, for
future use I hope you'll post your resolution when
you get it.

I couldn't wait as my current external drive
has gone belly up (a Western digital) after about
2 years of use from, I think, a lightning hit one
literally sunny afternoon<g> when a background
incremental backup decided to run. Took out my
voice modem too, but unfortunately I seldom use
it, so not much loss there, and so far everything
else seems OK. It did fry the protection on the
modem & blew the line fuses though. And my
secondary external is only 160 Gig, so eventually
I want to replace it with a 1 Terabyte drive too.

Hope you'll keep us posted,

Twayne
I've lodged a support query with LaCie and will let you know what I
find out, from them or elsewhere.
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
 
O

Olórin

Gareth said:
Hiya

I have smae issue have you solved teh problem Davis

:

What problem's that, then? The one with random swapping of letters? The
solution to that is to read over your post before you hit Send...
 
G

Gareth

Olórin said:
What problem's that, then? The one with random swapping of letters? The
solution to that is to read over your post before you hit Send...


though message would come at end of Davids oh and you’re so sarcastic. I am having same issue as David regarding password. if I restart computer the drive dose not connect without my having to enter password.
If you have answer to that great and thank you if not thanks for your
message lol
 
O

Olórin

Gareth said:
If you have answer to that great and thank you if not thanks for your
message lol

Well, the question is begged: did you try the net use/ping batch file
solution that David settled for?
 
G

Gareth

Olórin said:
Well, the question is begged: did you try the net use/ping batch file
solution that David settled for?


No I have not seen that can you point me in right direction but that sounds ideal to me.
 
O

Olórin

[Ook, premature send]

....just looked and I can't see DavidM's post in the web interface that
you're using, either; although it is in the Google Groups. Anyhoo, here's a
copy-paste:

==================
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)
==================
 
J

jean michel lecoq

je ne sais pas



DavidM wrote:

Re: Automatically login to network share?
24-Jan-09

I have lodged a support query with LaCie and will let you know what I
find out, from them or elsewhere.
David.

Previous Posts In This Thread:

Automatically login to network share?
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

I was looking at that same drive recently - it was the first time I'd come
I was looking at that same drive recently - it was
the first time I'd come across an ethernet styled
external drive. I ended up taking a pass on it
because of a worry about the very situation you
describe, plus not having anything better than
10/100 ethernet capability, but I didn't try to
ask any questions directly of them and instead
moved on to the USB type because I was in a hurry.
I suspect from what I read online, you'd have
to find your answer either in their FAQs onilne,
or by asking them directly at Support. I need and
want unattended operation whenever I decide to
enable the drive, so I took a pass on it, but, for
future use I hope you'll post your resolution when
you get it.

I couldn't wait as my current external drive
has gone belly up (a Western digital) after about
2 years of use from, I think, a lightning hit one
literally sunny afternoon<g> when a background
incremental backup decided to run. Took out my
voice modem too, but unfortunately I seldom use
it, so not much loss there, and so far everything
else seems OK. It did fry the protection on the
modem & blew the line fuses though. And my
secondary external is only 160 Gig, so eventually
I want to replace it with a 1 Terabyte drive too.

Hope you'll keep us posted,

Twayne

Re: Automatically login to network share?
I have lodged a support query with LaCie and will let you know what I
find out, from them or elsewhere.
David.

Re: Automatically login to network share?
On Fri, 23 Jan 2009 16:52:21 +0000, DavidM

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


Submitted via EggHeadCafe - Software Developer Portal of Choice
Join Lists with LINQ - SharePoint 2010
http://www.eggheadcafe.com/tutorial...6e-7d3fb7d38eca/join-lists-with-linq--sh.aspx
 

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