Create a scheduled task named "Auto VPN" or something similar

   Tick the Run whether  user is logged  on or not   

   Tick the Run with highest privileges

   Select Configure for Windows 7, Windows Server 2008 R2 in the Configure For drop down box   

   Create a the trigger for the task and set the Begin the task drop down to At startup

   Create an action for the task and set the action to Start a program

      Set the Program/script to c:\windows\system32\rasdial.exe

      Put the name of the connection to be made in the Add Arguments box*

         *If the name contains spaces you will need to enclose the name in quotation marks

         *You may need to additional rasdial parameters to the Add Arguments box dependant on the connection properties

   Clear all task Conditions


The end result should be that your VPN connection is automatically connected on Start up. You can also configure the connection for login or even a specific user's login.

You need to put your username and password into the Add Arguments box as well, at least i did. The full rasdial command is 

rasdial "VPN Connection" username password

so the Add Arguments box should contain "VPN Connection" username password. However, there are obvious security risks about having your vpn username and password stored in plain text in the open.

Die Aufgabenplanung kann nach dem Aufwachen aus dem Ruhezustand beliebige Programme aufrufen. Dazu greift man auf die im System-Protokoll verzeichnete Ereignis-ID „1“ zurück.

Erstellen Sie in der Aufgabenplanung eine neue Aufgabe und wählen Sie als „Neuer Trigger“ die Option „Aufgabe starten: 

Bei einem Ereignis“ und die Einstellung „Benutzerdefiniert“. Klicken Sie auf „Neuer Ereignisfilter“, wählen Sie als Ereignisebene „Informationen“ und markieren Sie in der Dropdown-Liste „Per Protokoll“ den Eintrag „Windows-Protokolle/System“. Tippen Sie schließlich die Zahl „1“ (ohne Anführungsstriche) ins Feld „Ereignis-IDs ein-/ausschließen“ und schließen Sie den Dialog mit „OK“. 

Jetzt ist nur noch unter „Aktionen“ anzugeben, welches Programm der Trigger starten soll.

Darüber hinaus sollte man den Namen des Users per Hand auswählen, da es sonst zu einem Fehler kommt. (Argument ungültig o.ä.)