how autologin for windows network share

  • Thread starter Thread starter John F. Davis
  • Start date Start date
J

John F. Davis

Hello

I am sharing a folder between two windows 2000 computers. How do I
setup a autologin for the share. ie. each time I reboot the second
computer and access the network share on the first computer, I have to
login in order to share the file. On the first computer, Ihave the
share setup as full control for everybody. This is also on a windows
workgroup and not a domain.

JD
 
Hello

I am sharing a folder between two windows 2000 computers.
How do I setup a autologin for the share. ie. each time I
reboot the second computer and access the network share on
the first computer, I have to login in order to share the
file. On the first computer, Ihave the share setup as
full control for everybody. This is also on a windows
workgroup and not a domain.

JD

You can use a batchfile, with a shortcut in the Startup folder:

@echo off
net use e: \\computer\share /user:%username%

replace e: with the remote drive name you want
replace computer with the other computer's name
and replace share with the other computers share name
assuming the usernames are the same or known on both computers

Open a command window and type: net help use
There you see all options.
 
You can use a batchfile, with a shortcut in the Startup folder:

@echo off
net use e: \\computer\share /user:%username%

replace e: with the remote drive name you want
replace computer with the other computer's name
and replace share with the other computers share name
assuming the usernames are the same or known on both computers

Open a command window and type: net help use
There you see all options.

Won't this require knowing the login/password?

JD
 
Can't you just map the drive and check the reconnect on boot box and create
an account on the host computer for the remote computer and give it
permission to the drive?
 
Won't this require knowing the login/password?

JD

Oh yes, you need to use an account/password known on the remote
PC.
Have you checked the Help: net help use
 
cut

Oh yes, you need to use an account/password known on the
remote PC.
Have you checked the Help: net help use

Oops..closed too early ;)
the syntax should be:
net use e: \\computer\share password /user:username

This requires a password in clear text, visable in your batch
file.
Better make an account on the remote PC, equal to the one you
use on the other PC, with the same password
Now you can use this syntax:
net use e: \\computer\share /user:%username%

e: drive letter you want to assing
computer = remote computer
share = remote share name
password = password
username is username
%username% = current username set by the computer
 
You'll want to create an account (in Users and Passwords) on the Win2k
machine(s) with the username and password that you use to logon to the other
Win2k machine(s) with. Then you'll need to share out the resource(s) with
permissions for those users. Also make sure they're all part of the same
workgroup. Then you'll no longer be prompted for the IPC$ password
(Inter-process communication)

In a peer level workgroup, when you try to access resources on a Windows
2000 machine, Windows 2000 needs to authenticate the user. If the user
account doesn't exist in it's local account database, then access will be
denied.


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
 

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

Back
Top