취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

VPN connection

Hello everybody, I'm developping the monitoring system of water turbines. There is CompactRIO and PC at the powerplant. I want to open VPN connection, run the application in my office and read shared variables from the powerplant. Labview have any function to open VPN. But it could be done via Windows command line. Do you know how I could send command from Labview to command line and open VPN? And after close the application to leave VPN? 

0 포인트
1/11 메시지
48,341 조회수

Do you mean open the VPN connection to access the Office network from home?

-----

The best solution is the one you find it by yourself
0 포인트
2/11 메시지
48,310 조회수

Well, I've done it already.

I've used System exec.vi and I've connected to command line input the string: rasdial "VPN name" user password. To disconnect I've used string: rasdial "VPN name" /disconnect.

It works very well 🙂

0 포인트
3/11 메시지
48,268 조회수

Having a VPN user name and password in plain text as source in an application would make any IT professional a little nervious.  I'm hoping for their sake that passwords expire every 6 months or so.

0 포인트
4/11 메시지
48,198 조회수

@mmarrtinn wrote:

Well, I've done it already.

I've used System exec.vi and I've connected to command line input the string: rasdial "VPN name" user password. To disconnect I've used string: rasdial "VPN name" /disconnect.

It works very well 🙂


I did the same thing using rasdial.

Is there a way to enumerate VPN name?

 

 

George Zou
0 포인트
5/11 메시지
46,708 조회수

Hi zou,

 

You can write the vpn name string array into the String[] property of a ring.

 

Ring.PNG

0 포인트
6/11 메시지
46,687 조회수

Thanks for reply.

 

But I don't know the VPN name on users computer.

I want to find a list of VPN connections configured on the users computer.

 

George Zou
0 포인트
7/11 메시지
46,683 조회수

Hi,

 

If you are using win 7 or later and have powershell, try this command in command prompt:

 

powershell Get-VpnConnection -AllUserConnection

 

 

0 포인트
8/11 메시지
46,676 조회수

Thanks.

It seem the command is not recognized by powershell:

image.png

 

George Zou
0 포인트
9/11 메시지
46,671 조회수

Hi,

 

Maybe your powershell is of older version or is missing the vpnclient module. Did you try using the latest version powershell?  I'm not really familiar with powershell so I'm not sure. I think this question can be asked at the microsoft forum.

 

Here is the information on this command.

0 포인트
10/11 메시지
46,665 조회수