Auto Redial for PPTP VPN connections in Windows 8

I too faced similar issue and hence coded a small tool in c# to provide redial functionality to dial up connection. You can download and use this tool from here Windows 8 Redialer


See the proposed answer here - http://social.technet.microsoft.com/Forums/en-US/W8ITProPreRel/thread/771eeb9a-77e6-428f-8e23-3433d1421757/

In brief:

  1. Using Task Scheduler, add a scheduled task.
  2. Add two triggers for the scheduled task. One using the advanced XML query <QueryList> <Query Id="0" Path="Application"> <Select Path="Application">*[System[Provider[@Name='RasClient'] and (EventID=20226)]] and *[EventData[Data[4]='829' or '629']]</Select> </Query> </QueryList>

    and the other triggering on event log: Microsoft-Windows-NetworkProfile/Operational, source: NetworkProfile, Event ID: 10000

  3. Add one action, to run "rasdial.exe" with parameters vpn-name username password