Re: Automatically Logon To Network Share
- From: DavidM <davidm_uk_notme@xxxxxxxxxxx>
- Date: Tue, 27 Jan 2009 14:55:16 +0000
On Fri, 23 Jan 2009 20:13:07 +0000, DavidM
<davidm_uk_notme@xxxxxxxxxxx> wrote:
I've just bought a 1Tb LaCie ethernet disk mini (NAS drive). It's setWell, I've been able to find a solution, although it's a bit
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
"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
.
- References:
- Automatically Logon To Network Share
- From: DavidM
- Automatically Logon To Network Share
- Prev by Date: Re: Porn Malware sabotaging hosts files
- Next by Date: Re: Missing DLL
- Previous by thread: Re: Automatically Logon To Network Share
- Next by thread: Print Screen Function
- Index(es):
Relevant Pages
|
Loading