Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

share|improve this answer
up vote 1 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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