I have an application that must connect to another network over a VPN and I need to setup a mapped drive. I am trying to configure this in the users' login batch file. Unfortunately I cannot save the username and password for this remote share like I can in Windows 2003. What is the proper net use syntax to map this remote share to a specific drive letter with also having to enter a username and password. Also, the password contains special characters (%&).
This is currently what I am trying but is not working.
net use z: \\ipaddress\DocumentImport\ password | "y%&78c" /user:domain\username