Powershell – Automate running Cisco VPN Client and RDP

batch-fileciscopowershellremote desktopvpn

I am trying to automate running the Cisco VPN Client and then a RDP session.

What is a good way to do this?
Batch File?
Powershell?
Other

I have played with a batch file and this kind of works.

cmd.exe /c "C:\Program Files\Cisco Systems\VPN Client\vpngui.exe"
cmd.exe /c "N:\Data\Gerhard\BeneSys\VPN, RDP\bene00226t_gweiss.rdp"

But it does not get past running the vpn client.

I am using
Windows 7 RC
Cisco VPN Client 5.0.01.0600
Windows Remote Desktop Connection

Best Answer

Open the VPN client. Click on Options then Application Launcher. Click the Enable check box and select the app to run. After the VPN connects the Cisco software will then run the app specified.