Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


14138 posts

Uber Geek
+1 received by user: 2544

Trusted
Subscriber

Topic # 189214 21-Dec-2015 08:57
Send private message

I have a PC running Windows 10 which also acts as our home server. We want to access files on the server but keep them secure to visitors on the LAN. My wife has a W10 laptop and want to access these files without any hassle - it should Just Work. Each PC has its own users set up (ie different usernames / passwords), plus we have users on the main PC.

Homegroups just don't work properly, in my experience. I managed to eventually get the laptops to join but they can't see any other PCs in the homegroup. I checked firewall settings, ran the homegroup / network troubleshooter, nothing. I tend to open things up using advanced network settings so my Kodi R.Pi2 can access the video file shares without passwords. I'm open to suggestions to get it working but pretty sick of them.

How else can I share the files? Is it possible to create password protected share then map the shares each time the laptop logs in using a script in the startup folder? Not having to type a password in each time is key, not bothered if it's saved to the laptop.

The only other way I can think of is Bittorrent Sync, which works remarkably well, but that means copying everything to the laptop and there's a lot of images and such that it doesn't make sense for. It also represents a risk, as if something goes wrong with her PC (virus/ransomware) it could more easily corrupt the main drive than with a shared drive. I of course have backups (offsite disks and online for critical stuff) but it would be a hassle.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Filter this topic showing only the reply marked as answer Create new topic
1458 posts

Uber Geek
+1 received by user: 140

Subscriber

  Reply # 1454209 21-Dec-2015 09:21
Send private message

You can do it from the command line, then put it into a batch file:

NET USE X: /d
NET USE X: \\servername\sharename u:username < passwordfile.txt

You need to create a share on the target machine called 'servername' with a name of 'sharename'
The first line deletes the share
The net line reconnects using 'username'.  You put the password for that user into a file called 'passwordfile.txt' (or whatver you want to call it).  Then when the NET USE prompts for the password, the password in the file will be piped in.

Put this into a batch file and add it to the startup (via task manager I think in Windows 10).

Any problems let me know.  I use this all the time for my workgroup computers to connect to my domain based server.



14138 posts

Uber Geek
+1 received by user: 2544

Trusted
Subscriber

  Reply # 1454216 21-Dec-2015 09:27
Send private message

Thanks timbosan, I'll have a go at this in the next few days and get back to you :)




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Mad Scientist
19005 posts

Uber Geek
+1 received by user: 2469

Trusted
Lifetime subscriber

  Reply # 1454294 21-Dec-2015 10:37
Send private message

I need to follow this and take some time to digest it ... !!!



14138 posts

Uber Geek
+1 received by user: 2544

Trusted
Subscriber

  Reply # 1459775 1-Jan-2016 11:48
Send private message

Success! Though I didn't need the password file, because the same Windows account is used by email address on each computer it seems to be automatic :-) I made a batch file that's started with a scheduled task that's run on startup.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Filter this topic showing only the reply marked as answer Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.