$returncode = system("net use Z: /USER:domain\\username \\\\computername\sharename password");