What I am trying to do is setup a scheduled job that copies files from a server not joined to the corporate domain to a server that is in the domain.
I am using robocopy.
It would be very easy to do:
net use \\IP\c$ /user:myuser mypassword
robocopy C:\mydir "\\IP\c$\copydir" /copyall
But I do not want to leave the password to this account hardcoded in a .bat file. Is there a more secure way I can store and pass credentials to the domain computer?