Ok guys!
Here is the deal. I need to find a way to make a file or just a way (like a .bat file or something) that would setup the vpn automatically and map my drive and whenever I restart it will connect automatically without the users help. Basically we are trying to eliminate the users involvement in the setup of VPN and MAPPING DRIVE so that they don’t have to know any of the server address. Here is a sample of automatic ‘map drive’ batch file. All the user has to do is just run the file.
rem this file will remove all current drive mappings on the respective
rem drive letter then remap the connections
@echo off
cls
echo.
echo If you are using this from home
echo.
echo Please make sure you have connected your vpn connection to IUP First
echo Please press a key on the keyboard to continue with the connection process...
Pause > nul
cls
c:
cd\windows\system32
rem delete all the drives potentially in use
net use g: /d
net use h: /d
net use i: /d
net use n: /d
net use o: /d
net use p: /d
net use w: /d
net use x: /d
rem remap the drives
net use g: \\ecbs\aps$ /persistent:Yes
net use h: /hrmn /persistent:Yes
net use i: \\aaaa1\ins$ /persistent:Yes
net use n: \\abbbb\com /persistent:Yes
Bookmarks