Solved

Various Windows computers logon script to Synology NAS

Posted on 2014-09-04
7
1,024 Views
Last Modified: 2014-10-11
G'day guys,

I have a client (old people's home) who is a not for profit organization. They have a variety of computers that have passed through multiple hands (Windows Vista, 7 and 8.1 Pro)

Now the issue is that I convinced them to put in a NAS for all there critical data and backups. Which setup fine and works great. However when it comes to sharing the data across multiple computers it becomes problematic.

So I made multiple users:

USER 1 - (Admin user gets to see everything, can backup)
USER 2 - (Limited user gets to see just Physio documents)
USER 3 - (Backup only user)

I made multiple documents folders:

Admin Documents, Physio Documents

I thought that I could on each computer set a mapped network drive to the user accounts previously mentioned. This works for some, but if the NAS is off or not contactable the mapped drive would stop working.

Also if multiple users on one system were to access the NAS only the first user permissions apply, unless a restart is provided.

You can imagine what a pain this is. Even logging out doesn't release the access to the NAS.

Another thing is that the Synology Backup requires a specific Admin user to run the backup (makes sense) but then conflicts if the user logging onto the computer is User 2 (Limited Access)

I guess what I'm asking is there a way without using a Server to give each user (Multiple user accounts on one computer) access to the NAS and backup functions?

I'm thinking that the main issue is with the Synology Backup conflicting with the mapped network drive. Seeing that for whatever reason you can't have two user account access to the NAS at any given time.

Also I would like to know what is the Best Practice in this environment to deal with Mapped Network drives and attributing that to Logon scripts in GPO.

regards,

Steven Swarts
TechCare
0
Comment
Question by:sjswarts
  • 3
  • 3
7 Comments
 
LVL 3

Accepted Solution

by:
MIRSYS earned 500 total points
Comment Utility
Well I guess you could use a script to map the drive with the correct usernames

net use x: \\yournas\share /user:"username" "password"

save as batch file

Run this file at login , if this is a workgroup computer you can do the following to add a logon script.

Computer Management\System Tools\Local Users and Groups\Users
Right-click the user account that you want, and then click Properties .
On the Profile tab, in Logon script , type the file name and relative path of the script.
0
 
LVL 23

Expert Comment

by:rhandels
Comment Utility
Even though MIRSYS option is the neatest one wthout a doubt you could also manually create the mappings on all machines using Windows Explorer and just tick the box "Reconnect at logon". This way the connection will be reconnected at logon and credentials will be saved. I also use this at home with my own Synology.
0
 

Author Comment

by:sjswarts
Comment Utility
@MIRSYS - thanks mate, that is exactly what I'm looking for. Didn't realize the option was there.

@rhandels - I've tried this, but when the network isn't active it doesn't map the network share.

Is there anyway that I can cause the batch file to wait? get it to ping 127.0.0.1 for 10 secs or so? This way if the network hasn't turned on yet I have time.

I did remember reading somewhere that in Group Policy you can put a time limit on the user accounts for logon scripts
0
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!

 
LVL 23

Expert Comment

by:rhandels
Comment Utility
<< I've tried this, but when the network isn't active it doesn't map the network share.>>

It's not entirely true. The mapping is being created because it was there in the first place, the only issue is that users can't access it until network is up and running. If a user clicks on the link when network is not there it would ask you if you would like to delete the mapping and that is the biggest issue (seeing users only click yes these days :)).

I believe you have 2 option. Either enable Synchronous login. This means Windows waits until network is active before it logs in (will take more time for the CTRL+ALT+DEL screen to pop up) or just add a WAIT command into the batch file, this should achieve the exact same result. Only issue is how long do you want to wait?? This heavily depends on Computer speed and user's patience to wait a few secs before logging in :)
0
 

Author Comment

by:sjswarts
Comment Utility
Yes that is exactly the issue. Patience in the IT world is virtually non-existent. Plus nobody after calling IT will admit to clicking yes to the dialogue saying remove network mapping.

Is there a way using GPO to prevent them from having permission to remove it or to even show that pop up? Seems unwise to have that as a default response to someone clicking on it. The best would be to say "This network share is unavailable, please wait till it comes online or contact your IT Admin".

Synchronous login sounds like a good idea, that way they are forced to wait without any interruption that they can make. Not a bad solution.
0
 
LVL 23

Expert Comment

by:rhandels
Comment Utility
<<Is there a way using GPO to prevent them from having permission to remove it or to even show that pop up? Seems unwise to have that as a default response to someone clicking on it. The best would be to say "This network share is unavailable, please wait till it comes online or contact your IT Admin".>>

For as far as i know, No. Because this is user driven (user creates the mapping) Microsoft assumes that the user knows what to do with it. You could try and remove the disconnect drive mappings setting in a policy but i'm not 100% sure if this does the trick.. Because technically speaking your not clicking the button to disconnect.
0
 

Author Closing Comment

by:sjswarts
Comment Utility
Appears to work just fine, thank you
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

AWS Glacier is Amazons cheapest storage option and is their answer to a ‘Cold’ storage service.  Customers primarily use this service for archival purposes and storage of infrastructure backups.  Its unlimited storage potential and low storage cost …
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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

15 Experts available now in Live!

Get 1:1 Help Now