So I've finally got the deployment almost perfect. I just can't for the life of me figure out how to get it to connect automatically to a VPN using Microsofts Connections. I tried just adding a custom task "Run Command Line" and adding a rasdial statement but not luck. Would a batch file work better? The ideal scenario is it would finish the deployment. Connect VPN. Join Domain. Updates. Reboot. Everythings ready to go. Any ideas / help / pointers would be appreciated.


A batch file would be the best way to do this. Looks at this answer by John Rennie. That would give you the basics. The CMAK would also have some tools to accomplish this.


Finally got this figured out. It was an issue with how I was copying files via MDT deployment. I finally got the syntax right and just ran a batch script that copied a RAS phonebook to the %allusers% location to allow every one access to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.