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 checkpoint connenection gui.jpg](https://community.checkpoint.com/t5/image/serverpage/image-id/1178iCED3C20A890C21E5/image-size/large?v=v2&px=999)
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