We're using Jenkins to test our software on both Windows and Linux. Our Jenkins server (which doesn't have any data drives mounted) starts a Jenkins slave Job on one of our Windows machine which then needs to get data from a network drive that needs to be mounted with different user credentials.
So, I need something like
net use \\server\share /u:username PASSWORD copy data
The problem is I don't want to write
PASSWORD in my Jenkins execution script.
On Linux, we use an SSH keyfile and scp for that, but what's the equivalent for that on Windows?