Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 552
  • Last Modified:

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


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
fcek
Asked:
fcek
  • 3
  • 3
1 Solution
 
pwustCommented:
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
 
fcekAuthor Commented:

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
 
fcekAuthor Commented:


The answer to that second question was just to log off/on.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
pwustCommented:
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
 
fcekAuthor Commented:


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
 
pwustCommented:
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

Get Certified for a Job in Cybersecurity

Want an exciting career in an emerging field? Earn your MS in Cybersecurity and get certified in ethical hacking or computer forensic investigation. WGU’s MSCSIA degree program was designed to meet the most recent U.S. Department of Homeland Security (DHS) and NSA guidelines.  

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now