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.
You have a few options.
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.
Give Everyone access and enable anonymous authentication. This is extremely insecure and you shouldn't do this either.
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.
Have you tried authenticating with the test account, with username
COMPUTERNAME\Test
instead of justTest
-- your Win2012 machine might be prepending its own domain name on to the username.