Solved

To set up a link / batch file for each user to log onto a NAS.  User to be prompted for password.

Posted on 2011-02-24
6
514 Views
Last Modified: 2012-05-11

Goal - to set up links / batch files for each user to

e.g.
On our NAS 192.168.1.100
There are two users
mary (share) mary1 (password)

The users are not technical.

Whats the best way to give them a "link"
I want each user to be presented with a password fileld.

I can do it it from
start
run
\\192.168.1.100\mary

Can someone write a batch file to make that run and I will create a batch file for each user.

Thanks.

0
Comment
Question by:fcek
  • 3
  • 3
6 Comments
 
LVL 8

Accepted Solution

by:
pwust earned 500 total points
ID: 34973671
It is as easy as write the line:
start \\192.168.1.100\mary

Open in new window

into the batch file, which will usually work like if you had written it to the "Run..." prompt.

I hope that solves your issue...
-Patric
0
 

Author Comment

by:fcek
ID: 34975593

pwust: > that worked :-)


If I swap to login into the NAS with another user I get the following > Please see pic attached.
I can log on/off to clear this error.

Is there something I can do appart from log off / on?
Is there a batch file I could run ?  


network-error-.gif
0
 

Author Comment

by:fcek
ID: 35216684


The answer to that second question was just to log off/on.
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 8

Expert Comment

by:pwust
ID: 35229494
The error you have showed comed if you perform fast user switching.
e.g. you are connected as USER1 to your NAS, then perform a "switch user" to USER2 on the same client PC.
If USER2 tries to connect to you NAS, the client tries to open a second connection with different user credentials, although the connection is active in the other (USER1-) session.

One solution is logging of and on (as you found out).

If you really need to have multiple connections from one PC to a network resource such as NAS, using different credentials, then you need to fool Windows by using different DNS host names that are all pointing to the same NAS.

this could be:
NAS-FOR-USER1 -> IP of your NAS
NAS-FOR-USER2 -> same IP of your NAS

so USER1 will use "start NAS-FOR-USER1\USER1",
and USER2 will use "start NAS-FOR-USER2\USER2"

this will work, but I see no real use out of that...

0
 

Author Comment

by:fcek
ID: 35235497


Hi please explain that using these .


IP address 192.168.1.100

User:                    share:

user1                   share1
user2                   share2

How do you do it without logging in/out?

0
 
LVL 8

Expert Comment

by:pwust
ID: 35240931
You will first will need to add DNS alias entries for your destination ip 192.168.1.100.

e.g.
my-nas.domain.tld.         3600     IN     A       192.168.1.100
my-nas-user1.domain.tld.   3600     IN     CNAME   my-nas.domain.tld.
my-nas-user2.domain.tld.   3600     IN     CNAME   my-nas.domain.tld.

Open in new window

or:
my-nas-user1.domain.tld.   3600     IN     A       192.168.1.100
my-nas-user2.domain.tld.   3600     IN     A       192.168.1.100

Open in new window

then:

If you do not have a DNS server, you can add two lines to your local computer's
hosts file (usually c:\Windows\System32\drivers\etc\hosts):
my-nas-user1          192.168.1.100
my-nas-user2          192.168.1.100

Open in new window

or:
my-nas-user1.domain.tld       192.168.1.100
my-nas-user2.domain.tld       192.168.1.100

Open in new window


script of user1:
start \\my-nas-user1.domain.tld\share1
or:
start \\my-nas-user1\share1

Open in new window

script for user2:
start \\my-nas-user2.domain.tld\share2
or:
start \\my-nas-user2\share2

Open in new window


The clue is that Windows now thinks that your NAS is two different devices because you use names instead of the IP addresss.

HTH, Patric
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Network ports are the threads that hold network communication together. They are an essential part of networking that can be easily ignore or misunderstood, my goals is to show those who don't have a strong network foundation how network ports opera…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now