How to remotely open up a VPN session on a remote desktop using C#?

Currently in order to run a SQL Server job we open up a VPN session on a remote desktop through internet explorer. (The data source is outside of the US. We are pushing it to a local destination in the US.) Typically I enter user credentials through internet explorer and then open up a VPN session. Then I will manually run the SQL Server job locally. We can obviously run the SQL server job automatically but the VPN is the issue. I am wondering if there is a way in C# to open up IE automatically, enter in the user credentials, and start a VPN session to allow the SQL job to run right after. Any ideas?

by personcsharp via /r/csharp

Leave a Reply