I'm not trying to map to a folder on the same client.

I'm trying to map to a folder on the server, but when our laptops connect via VPN we can't reach drive mappings created by using host name.

Use F: "\\server\share" works fine when connected by through the VPN it fails.

The server IP is 192.168.1.100, and I know windows can do drive mapping this way, I'd like to set it up using the script.