Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
crmexpert
Explorer

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

0 Kudos
5 Replies
G_W_Albrecht
Legend
Legend

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 !

CCSE CCTE CCSM SMB Specialist
0 Kudos
crmexpert
Explorer

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
G_W_Albrecht
Legend
Legend

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

 

CCSE CCTE CCSM SMB Specialist
skapvampyr
Explorer

I use user + password + token to connect, can I use CLI/POWERSHELL to connect?

0 Kudos
G_W_Albrecht
Legend
Legend

No - see the examples above for possible ways of authentication !

CCSE CCTE CCSM SMB Specialist
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events