I donβt think that this is generally cygwin support for UNC paths (i.e. \\server\share ), so you will have to rely on mapping to a network drive and then using /cygdrive/s . To fix the problem with it without working when you are not logged in, you need to call the Windows NET program from your script:
net use s: \\thevault\Shared password /user:myuser
Perhaps some security problems may have a password in text form, so another possibility is to ensure that the script is run from a user account that has read permission for this server, and then you can omit the password.
source share