We want the file to be written to a network share (actually a UNIX Samba share, but appears like a normal Windows share). In order to get the drive mapped, we need to logon to the machine. This is ...