<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Disclaimer banner popup upon VPN connection in SASE and Remote Access</title>
    <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/54703#M12231</link>
    <description>&lt;P&gt;Not really a question, but suggestions for improvements or other feedback are certainly encouraged.&lt;/P&gt;&lt;P&gt;I received a requirement to pop up a disclaimer after an endpoint connects to VPN, requiring the user to accept the terms ("unauthorized access prohibited" etc) or else the VPN connection should shut off. TAC helpfully pointed me to &lt;A title="sk103117 -  Configuration the desktop_post_connect_script per gateway " href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk103117&amp;amp;partition=Advanced&amp;amp;product=Endpoint" target="_blank" rel="noopener"&gt;sk103117&lt;/A&gt; but understandably, their assistance ended before providing any guidance on how the post-connect script itself should work.&lt;/P&gt;&lt;P&gt;Googling wasn't much help, so DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...*&lt;/P&gt;&lt;P&gt;In a nutshell, the SK instructs you to make a few adjustments via GUIDBEdit and the trac_client_1.ttm file (or your equivalent, if you have multiple ttm's) on the gateway(s), which will point the client to a local script that runs after the VPN connects. TAC's advice was to consider an HTA file, which is a good idea, but they could not assist any further than that.&lt;/P&gt;&lt;P&gt;First, it turns out you cannot run an HTA file directly from this feature. So I created a .bat wrapper. This part is very simple, something as basic as this does the trick:&lt;/P&gt;&lt;P&gt;================= popup.bat =================&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo @off&lt;BR /&gt;start C:\scripts\popup.hta&lt;/P&gt;&lt;P&gt;============================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of important administrative notes before we get into the HTA file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Permissions for popup.bat and popup.hta should be restricted such that regular users cannot simply delete or rename them, but they should be able to execute them.&lt;/LI&gt;&lt;LI&gt;popup.hta will need to be trusted by your GPO policy or whatever you are using to manage Windows security on your endpoints. Otherwise, you'll get an untrusted app warning upon first connection, which could confuse users.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Borrowing from cobbled-together code that I was able to find on various sites (appropriate credit given in comments where due) I put together a little popup that cannot be closed or edited, and which provides the user a configurable number of seconds to Agree or Disagree to the disclaimer before the VPN disconnects. Conveniently, the VPN will also disconnect if the user tries to kill the task without agreeing.&lt;/P&gt;&lt;P&gt;Here is the code for popup.hta:&lt;/P&gt;&lt;P&gt;================= C:\scripts\popup.hta =================&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;APPLICATIONNAME="disclaimer_popup"&lt;BR /&gt;SCROLL="no"&lt;BR /&gt;SINGLEINSTANCE="yes"&lt;BR /&gt;WINDOWSTATE="Normal"&lt;BR /&gt;CAPTION="yes"&lt;BR /&gt;MAXIMIZEBUTTON="no"&lt;BR /&gt;MINIMIZEBUTTON="no"&lt;BR /&gt;SYSMENU="no"&lt;BR /&gt;BORDER="thin"&lt;BR /&gt;BORDERSTYLE="Normal"&lt;BR /&gt;CONTEXTMENU="no"&lt;BR /&gt;SELECTION="no"&lt;BR /&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Authorized Access Only&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script language="VBScript"&amp;gt;&lt;/P&gt;&lt;P&gt;Public accepted&lt;BR /&gt;Public alreadyran&lt;/P&gt;&lt;P&gt;Dim pbTimerID&lt;BR /&gt;Dim pbHTML&lt;BR /&gt;Dim pbWaitTime&lt;BR /&gt;Dim pbHeight&lt;BR /&gt;Dim pbWidth&lt;BR /&gt;Dim pbBorder&lt;BR /&gt;Dim pbUnloadedColor&lt;BR /&gt;Dim pbLoadedColor&lt;BR /&gt;Dim pbStartTime&lt;/P&gt;&lt;P&gt;Sub Window_OnLoad&lt;BR /&gt;' Progress Bar Settings, credit to Paul W. Blair:&lt;BR /&gt;' &lt;A href="https://gallery.technet.microsoft.com/scriptcenter/Accurate-HTA-Countdown-and-3fd670d6" target="_blank"&gt;https://gallery.technet.microsoft.com/scriptcenter/Accurate-HTA-Countdown-and-3fd670d6&lt;/A&gt;&lt;BR /&gt;pbWaitTime = 20 ' How many seconds the progress bar lasts&lt;BR /&gt;pbHeight = 8 ' Progress bar height&lt;BR /&gt;pbWidth= 200 ' Progress bar width&lt;BR /&gt;pbUnloadedColor="white" ' Color of unloaded area&lt;BR /&gt;pbLoadedColor="blue" ' Color of loaded area&lt;BR /&gt;pbBorder="green" ' Color of Progress bar border&lt;BR /&gt;&lt;BR /&gt;' Don't edit these things&lt;BR /&gt;pbStartTime = Now&lt;BR /&gt;rProgressbar&lt;BR /&gt;pbTimerID = window.setInterval("rProgressbar", 200)&lt;BR /&gt;'window.resizeTo screen.availWidth/4.5,screen.availHeight/3&lt;BR /&gt;window.resizeTo 427,360&lt;BR /&gt;window.moveTo screen.availWidth/3,screen.availHeight/3&lt;BR /&gt;' Fake modal window&lt;BR /&gt;window.setInterval "putontop()", 200&lt;/P&gt;&lt;P&gt;accepted = False&lt;BR /&gt;alreadyran = False&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Function putontop&lt;BR /&gt;window.focus()&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Sub rProgressbar&lt;BR /&gt;pbHTML = ""&lt;BR /&gt;pbSecsPassed = DateDiff("s",pbStartTime,Now)&lt;BR /&gt;pbMinsToGo = Int((pbWaitTime - pbSecsPassed) / 60)&lt;BR /&gt;pbSecsToGo = Int((pbWaitTime - pbSecsPassed) - (pbMinsToGo * 60))&lt;BR /&gt;if pbSecsToGo &amp;lt; 10 then&lt;BR /&gt;pbSecsToGo = "0" &amp;amp; pbSecsToGo&lt;BR /&gt;end if&lt;BR /&gt;pbLoadedWidth = (pbSecsPassed / pbWaittime) * pbWidth&lt;BR /&gt;pbUnloadedWidth = pbWidth - pbLoadedWidth&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;table border=1 bordercolor=" &amp;amp; pbBorder &amp;amp; " cellpadding=0 cellspacing=0 width=" &amp;amp; pbWidth &amp;amp; "&amp;gt;&amp;lt;tr&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;th width=" &amp;amp; pbLoadedWidth &amp;amp; " height=" &amp;amp; pbHeight &amp;amp; "align=left bgcolor=" &amp;amp; pbLoadedColor &amp;amp; "&amp;gt;&amp;lt;/th&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;th width=" &amp;amp; pbUnloadedWidth &amp;amp; " height=" &amp;amp; pbHeight &amp;amp; "align=left bgcolor=" &amp;amp; pbUnLoadedColor &amp;amp; "&amp;gt;&amp;lt;/th&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;br&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;table border=0 cellpadding=0 cellspacing=0 width=" &amp;amp; pbWidth &amp;amp; "&amp;gt;&amp;lt;tr&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "" &amp;amp; pbMinsToGo &amp;amp; ":" &amp;amp; pbSecsToGo &amp;amp; " remaining"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;"&lt;BR /&gt;progressbar.InnerHTML = pbHTML&lt;BR /&gt;if DateDiff("s",pbStartTime,Now) &amp;gt;= pbWaitTime then&lt;BR /&gt;StopTimer&lt;BR /&gt;DoAction&lt;BR /&gt;end if&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub StopTimer&lt;BR /&gt;window.clearInterval(PBTimerID)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub DoAction&lt;BR /&gt;DisableVPNAdapter&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub DisableVPNAdapter&lt;BR /&gt;If accepted = True Then&lt;BR /&gt;Window = Nothing&lt;BR /&gt;Else&lt;BR /&gt;If alreadyran = False Then&lt;BR /&gt;Set ObjShell = CreateObject("Shell.Application")&lt;BR /&gt;ObjShell.ShellExecute "trac.exe", "disconnect", "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\", "", 0&lt;BR /&gt;alreadyran = True&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Window.Close&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub Proceed&lt;BR /&gt;accepted = True&lt;BR /&gt;Window.Close&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub Window_onUnload&lt;BR /&gt;DisableVPNAdapter&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;div align="center"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Unauthorized access is prohibited. By clicking 'Agree' you assert that you are an authorized employee, will abide by all usage policies, and consent to monitoring of all network traffic.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&amp;lt;button onclick="Proceed"&amp;gt;Agree&amp;lt;/button&amp;gt; &amp;amp;nbsp;&lt;BR /&gt;&amp;lt;button onclick="DisableVPNAdapter"&amp;gt;Disagree&amp;lt;/button&amp;gt;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div align="center"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;VPN will disconnect if you do not agree before the counter reaches 0.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;span id = "progressbar"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;===================================================&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all goes well, then upon connection you should see a window like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popupscreenshot.png" style="width: 417px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/1415i5E286F5FACA23BBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="popupscreenshot.png" alt="popupscreenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this helps someone in the same situation at some point down the road.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-MAB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* - &lt;A href="https://xkcd.com/979/" target="_blank"&gt;https://xkcd.com/979/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 04:28:48 GMT</pubDate>
    <dc:creator>Mike_Barkett</dc:creator>
    <dc:date>2019-05-30T04:28:48Z</dc:date>
    <item>
      <title>Disclaimer banner popup upon VPN connection</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/54703#M12231</link>
      <description>&lt;P&gt;Not really a question, but suggestions for improvements or other feedback are certainly encouraged.&lt;/P&gt;&lt;P&gt;I received a requirement to pop up a disclaimer after an endpoint connects to VPN, requiring the user to accept the terms ("unauthorized access prohibited" etc) or else the VPN connection should shut off. TAC helpfully pointed me to &lt;A title="sk103117 -  Configuration the desktop_post_connect_script per gateway " href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk103117&amp;amp;partition=Advanced&amp;amp;product=Endpoint" target="_blank" rel="noopener"&gt;sk103117&lt;/A&gt; but understandably, their assistance ended before providing any guidance on how the post-connect script itself should work.&lt;/P&gt;&lt;P&gt;Googling wasn't much help, so DEAR PEOPLE FROM THE FUTURE: Here's what we've figured out so far...*&lt;/P&gt;&lt;P&gt;In a nutshell, the SK instructs you to make a few adjustments via GUIDBEdit and the trac_client_1.ttm file (or your equivalent, if you have multiple ttm's) on the gateway(s), which will point the client to a local script that runs after the VPN connects. TAC's advice was to consider an HTA file, which is a good idea, but they could not assist any further than that.&lt;/P&gt;&lt;P&gt;First, it turns out you cannot run an HTA file directly from this feature. So I created a .bat wrapper. This part is very simple, something as basic as this does the trick:&lt;/P&gt;&lt;P&gt;================= popup.bat =================&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo @off&lt;BR /&gt;start C:\scripts\popup.hta&lt;/P&gt;&lt;P&gt;============================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of important administrative notes before we get into the HTA file:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Permissions for popup.bat and popup.hta should be restricted such that regular users cannot simply delete or rename them, but they should be able to execute them.&lt;/LI&gt;&lt;LI&gt;popup.hta will need to be trusted by your GPO policy or whatever you are using to manage Windows security on your endpoints. Otherwise, you'll get an untrusted app warning upon first connection, which could confuse users.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Borrowing from cobbled-together code that I was able to find on various sites (appropriate credit given in comments where due) I put together a little popup that cannot be closed or edited, and which provides the user a configurable number of seconds to Agree or Disagree to the disclaimer before the VPN disconnects. Conveniently, the VPN will also disconnect if the user tries to kill the task without agreeing.&lt;/P&gt;&lt;P&gt;Here is the code for popup.hta:&lt;/P&gt;&lt;P&gt;================= C:\scripts\popup.hta =================&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;APPLICATIONNAME="disclaimer_popup"&lt;BR /&gt;SCROLL="no"&lt;BR /&gt;SINGLEINSTANCE="yes"&lt;BR /&gt;WINDOWSTATE="Normal"&lt;BR /&gt;CAPTION="yes"&lt;BR /&gt;MAXIMIZEBUTTON="no"&lt;BR /&gt;MINIMIZEBUTTON="no"&lt;BR /&gt;SYSMENU="no"&lt;BR /&gt;BORDER="thin"&lt;BR /&gt;BORDERSTYLE="Normal"&lt;BR /&gt;CONTEXTMENU="no"&lt;BR /&gt;SELECTION="no"&lt;BR /&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Authorized Access Only&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script language="VBScript"&amp;gt;&lt;/P&gt;&lt;P&gt;Public accepted&lt;BR /&gt;Public alreadyran&lt;/P&gt;&lt;P&gt;Dim pbTimerID&lt;BR /&gt;Dim pbHTML&lt;BR /&gt;Dim pbWaitTime&lt;BR /&gt;Dim pbHeight&lt;BR /&gt;Dim pbWidth&lt;BR /&gt;Dim pbBorder&lt;BR /&gt;Dim pbUnloadedColor&lt;BR /&gt;Dim pbLoadedColor&lt;BR /&gt;Dim pbStartTime&lt;/P&gt;&lt;P&gt;Sub Window_OnLoad&lt;BR /&gt;' Progress Bar Settings, credit to Paul W. Blair:&lt;BR /&gt;' &lt;A href="https://gallery.technet.microsoft.com/scriptcenter/Accurate-HTA-Countdown-and-3fd670d6" target="_blank"&gt;https://gallery.technet.microsoft.com/scriptcenter/Accurate-HTA-Countdown-and-3fd670d6&lt;/A&gt;&lt;BR /&gt;pbWaitTime = 20 ' How many seconds the progress bar lasts&lt;BR /&gt;pbHeight = 8 ' Progress bar height&lt;BR /&gt;pbWidth= 200 ' Progress bar width&lt;BR /&gt;pbUnloadedColor="white" ' Color of unloaded area&lt;BR /&gt;pbLoadedColor="blue" ' Color of loaded area&lt;BR /&gt;pbBorder="green" ' Color of Progress bar border&lt;BR /&gt;&lt;BR /&gt;' Don't edit these things&lt;BR /&gt;pbStartTime = Now&lt;BR /&gt;rProgressbar&lt;BR /&gt;pbTimerID = window.setInterval("rProgressbar", 200)&lt;BR /&gt;'window.resizeTo screen.availWidth/4.5,screen.availHeight/3&lt;BR /&gt;window.resizeTo 427,360&lt;BR /&gt;window.moveTo screen.availWidth/3,screen.availHeight/3&lt;BR /&gt;' Fake modal window&lt;BR /&gt;window.setInterval "putontop()", 200&lt;/P&gt;&lt;P&gt;accepted = False&lt;BR /&gt;alreadyran = False&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Function putontop&lt;BR /&gt;window.focus()&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Sub rProgressbar&lt;BR /&gt;pbHTML = ""&lt;BR /&gt;pbSecsPassed = DateDiff("s",pbStartTime,Now)&lt;BR /&gt;pbMinsToGo = Int((pbWaitTime - pbSecsPassed) / 60)&lt;BR /&gt;pbSecsToGo = Int((pbWaitTime - pbSecsPassed) - (pbMinsToGo * 60))&lt;BR /&gt;if pbSecsToGo &amp;lt; 10 then&lt;BR /&gt;pbSecsToGo = "0" &amp;amp; pbSecsToGo&lt;BR /&gt;end if&lt;BR /&gt;pbLoadedWidth = (pbSecsPassed / pbWaittime) * pbWidth&lt;BR /&gt;pbUnloadedWidth = pbWidth - pbLoadedWidth&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;table border=1 bordercolor=" &amp;amp; pbBorder &amp;amp; " cellpadding=0 cellspacing=0 width=" &amp;amp; pbWidth &amp;amp; "&amp;gt;&amp;lt;tr&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;th width=" &amp;amp; pbLoadedWidth &amp;amp; " height=" &amp;amp; pbHeight &amp;amp; "align=left bgcolor=" &amp;amp; pbLoadedColor &amp;amp; "&amp;gt;&amp;lt;/th&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;th width=" &amp;amp; pbUnloadedWidth &amp;amp; " height=" &amp;amp; pbHeight &amp;amp; "align=left bgcolor=" &amp;amp; pbUnLoadedColor &amp;amp; "&amp;gt;&amp;lt;/th&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;br&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;table border=0 cellpadding=0 cellspacing=0 width=" &amp;amp; pbWidth &amp;amp; "&amp;gt;&amp;lt;tr&amp;gt;"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "" &amp;amp; pbMinsToGo &amp;amp; ":" &amp;amp; pbSecsToGo &amp;amp; " remaining"&lt;BR /&gt;pbHTML = pbHTML &amp;amp; "&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;"&lt;BR /&gt;progressbar.InnerHTML = pbHTML&lt;BR /&gt;if DateDiff("s",pbStartTime,Now) &amp;gt;= pbWaitTime then&lt;BR /&gt;StopTimer&lt;BR /&gt;DoAction&lt;BR /&gt;end if&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub StopTimer&lt;BR /&gt;window.clearInterval(PBTimerID)&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub DoAction&lt;BR /&gt;DisableVPNAdapter&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sub DisableVPNAdapter&lt;BR /&gt;If accepted = True Then&lt;BR /&gt;Window = Nothing&lt;BR /&gt;Else&lt;BR /&gt;If alreadyran = False Then&lt;BR /&gt;Set ObjShell = CreateObject("Shell.Application")&lt;BR /&gt;ObjShell.ShellExecute "trac.exe", "disconnect", "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\", "", 0&lt;BR /&gt;alreadyran = True&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Window.Close&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub Proceed&lt;BR /&gt;accepted = True&lt;BR /&gt;Window.Close&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub Window_onUnload&lt;BR /&gt;DisableVPNAdapter&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&amp;lt;div align="center"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;Unauthorized access is prohibited. By clicking 'Agree' you assert that you are an authorized employee, will abide by all usage policies, and consent to monitoring of all network traffic.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&amp;lt;button onclick="Proceed"&amp;gt;Agree&amp;lt;/button&amp;gt; &amp;amp;nbsp;&lt;BR /&gt;&amp;lt;button onclick="DisableVPNAdapter"&amp;gt;Disagree&amp;lt;/button&amp;gt;&amp;lt;/p&amp;gt; &amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div align="center"&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;VPN will disconnect if you do not agree before the counter reaches 0.&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;span id = "progressbar"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;===================================================&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all goes well, then upon connection you should see a window like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="popupscreenshot.png" style="width: 417px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/1415i5E286F5FACA23BBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="popupscreenshot.png" alt="popupscreenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this helps someone in the same situation at some point down the road.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-MAB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* - &lt;A href="https://xkcd.com/979/" target="_blank"&gt;https://xkcd.com/979/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 04:28:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/54703#M12231</guid>
      <dc:creator>Mike_Barkett</dc:creator>
      <dc:date>2019-05-30T04:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Disclaimer banner popup upon VPN connection</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/54955#M12232</link>
      <description>It's like in Demolition Man where all restaurants are Taco Bell, all CheckMates posts are questions &lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;</description>
      <pubDate>Mon, 03 Jun 2019 17:27:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/54955#M12232</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-06-03T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Disclaimer banner popup upon VPN connection</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/153901#M12233</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;sk166153 maybe works for you...&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 23:19:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Disclaimer-banner-popup-upon-VPN-connection/m-p/153901#M12233</guid>
      <dc:creator>Dreyfuss</dc:creator>
      <dc:date>2022-07-26T23:19:44Z</dc:date>
    </item>
  </channel>
</rss>

