Hi Stefan and AndyB,
I too user RTS and have made tasks for VPN connections.
This is the way I did it:
connect task:
command: rasdial
options: "connection" user password
disconnect task:
command: rasphone
options: -h "connection"
This bypasses the GUI VPN which eliminates the need to log on or click anything.
Now you will just see a brief CMD screen with the connection progress and after that the RDP starts.
Hope this helps.
Regards,
Ronald
Small note for Stefan,
I noticed with this way when my computer has just booted up sometimes the connection doesn't work.
Probably some windows component has not initialised at this point and the way to get around it is to start a GUI VPN manually, but i'm wondering if there's another way. Probably you can think of one?