Mapping network drives through commands
Ignore the subject; it's just the net use command. I have a VPN connection and several network drives to map each time the VPN is connected. I can have the network drives reconnect at logon, but that would require me to have enable the VPN to require logging on before the Windows logon can be accessed.
I do not want the VPN logon to come on at the Windows logon screen, except for a particular user, so I was hoping someone would be able to help me write custom logon scripts so that the VPN logon screen comes up when a particular user logs in, before their settings are loaded.
Since that's unlikely, I was hoping for another option which would allow the VPN logon come up through the startup folder (or registry equivalent) and then I can click on a shortcut (or script) to map all the drives. The only thing I can think of, (which works pretty well actually,) is a batch file with a series of net use commands. The problem I'm facing is that I don't want the drives to reconnect at logon and I don't know how to use the /persistent: no in a batch, because that needs to go on a new line.
|