I support users acessing windows file servers from OpenVPN and they need network drives to look the same as when they are on the office LAN.
On LAN a login script (bat) maps all drives automatically, but on VPN the same script asks for username/password for each drive. I don't want users to type passwords on a DOS prompt, so I though net use gui would be a solution. I'd have a different script for VPN users that maps the same drives, using nug instead of net use.
But net use gui does not seem to accept any command line parameter. If it did, just like net use on the DOS prompt, my problem would be solved. I'd be also happy with a simple syntax than net use, as long as I am able to provide driver letter, server and share name. Username could by default be the current logged in user.
For example:
nug.exe w: \\server\share domain\user password
or
bug.exe w server share domain\user password