I have a batch script I've written for a client, that uses
rasdial to establish a PPTP VPN connection, to automatically copy some files from another company's remote machine. I'm trying to move that script to a Windows Server 2012 R2 Core installation, and
rasdial doesn't exist.
It is worth noting that
rasdial is installed on Windows 2012 R2 standard edition and foundation... but I don't know what features/roles it came from, if any (and Google has failed me).
Is there a way to get
rasdialon the Core server? I've tried copying the binaries, as well as any DLLs that it is dependent on (using
depends.exeto determine them), but it didn't work; the executable didn't appear to do anything when run. I also tried installing Routing and Remote Access, in hopes that
rasdialwould come with them, but alas, no.
If it is not possible to get
rasdial, is it possible to establish a VPN connection using PowerShell? I found this, but it uses
rasphone, a related executable that is also not available.