Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ivory

Connecting checkpoint vpn from powershell

Hi

I want to create VPN connection and disconnect it at the end of my process using power shell script

I tried the script posted here:

https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solut...

Sfter successfuly connecting and disconnecting to checkpoint vpn using the GUI client:

checkpoint connenection gui.jpg

 

 

 

I operate the same connection using the power shell script shown above.

and always getting  this exception:

PSMessageDetails : 
Exception : System.Management.Automation.RuntimeException: Could not retrieve B4D42709.CheckPointVPN
TargetObject : Could not retrieve B4D42709.CheckPointVPN
CategoryInfo : OperationStopped: (Could not retri...9.CheckPointVPN:String) [], RuntimeException
FullyQualifiedErrorId : Could not retrieve B4D42709.CheckPointVPN
ErrorDetails : 
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, C:\users\tal aruety\downloads\config.ps1: line 79
at <ScriptBlock>, <No file>: line 1

 

 

 

Any ideas how to do this?

Thanks

Tal

Tags (1)
0 Kudos
3 Replies
Highlighted
Sapphire

I see that this script is for Check Point Capsule VPN for Windows 10 only (You have to first download an app from Windows store) - and you are using the Endpoint Security VPN for Windows Client instead... See sk67820: Check Point RemoteAccessSolutions for the different client flavors !

0 Kudos
Highlighted
Ivory

Hi, Thank you for metntioning that.

Though this article does not show CLI\POWERSHELL tools to initiate a vpn connection.

I need a solution that will do the same thing i do with the windows client, just from comman prompt or power shell.

Are you familiar with such a solution?

0 Kudos
Highlighted
Sapphire

Endpoint Security VPN Client can be used from Command Line - see Remote Access Clients for Windows 32/64- bit Administration Guide E80.72 and Higher p128ff, Remote AccessClients Command Line:

Screenshot_2019-05-16 Remote Access Clients for Windows 32 64-bit Administration Guide E80 72 and Higher - CP_E80 72andhigh[...].png