Hello!
I am running a .bat file that needs to copy a file to a server on a different network. I have shared the drive on the server out to a particular ID, however, I have to log into that server, or pass it the credentials to gain access to the share. I have tried mapping the drive using the
net use x:\\server\share password /user:domain\user
command, however, the password parameter seems to be a password on the share itself, and not the user name password.
Does anyone have any idea how I could either log into the share using a .bat command line or pass my credentials in with the xcopy command?
Thanks Much!!
P.S.
I can copy the file fine with the share opened to everyone, however, this is a security gap I cannot leave open.
I am running a .bat file that needs to copy a file to a server on a different network. I have shared the drive on the server out to a particular ID, however, I have to log into that server, or pass it the credentials to gain access to the share. I have tried mapping the drive using the
net use x:\\server\share password /user:domain\user
command, however, the password parameter seems to be a password on the share itself, and not the user name password.
Does anyone have any idea how I could either log into the share using a .bat command line or pass my credentials in with the xcopy command?
Thanks Much!!
P.S.
I can copy the file fine with the share opened to everyone, however, this is a security gap I cannot leave open.