Windows shared folder access from a domain user to a non-domain user

network-sharewindows

I have two computer, the first one is the server (so WinXP) with a shared folder granted for user "test" and this is out of domain, it is just in WORKGROUP.
The second computer is a client computer (WS2012) in domain and i would like to access directly to the shared folder of the server without prompting username/password.

I tried to add a "test" user (with the same password) in localuser of the client and also in the domain, but the access fails.

I need this on.the.fly access because i need some file from share just with a file path
(ex. \server\path\file.txt) without prompting.

thank you.

Best Answer

You have a few options.

  1. Create a local account on each machine with the exact same username and password. Have your batch job run as this account. Give this account permission to access the share. This is called pass-through authentication and it's an ugly hack and holdover from the early days.

  2. Give Everyone access and enable anonymous authentication. This is extremely insecure and you shouldn't do this either.

  3. The "correct" way to handle this is to join the server to the domain and use a domain account that has access to the share to run the batch job in question.