<?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 Re: Custom Push operation (Remote Command) in Endpoint</title>
    <link>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137550#M4951</link>
    <description>&lt;P&gt;Of course, here's what I got. First image is the output of a successful operation. The push was done on Infinity Portal with a "Remote Command" operation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workingTracPS.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/14742i775F0D4894B08FB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="workingTracPS.png" alt="workingTracPS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The second image is a Custom Push.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NotWorkingTrac.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/14743i5BA9E64F9B17F064/image-size/large?v=v2&amp;amp;px=999" role="button" title="NotWorkingTrac.png" alt="NotWorkingTrac.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the script I used, though I'm ommitting the contents of the "trac.config" file to save space.&lt;/P&gt;&lt;PRE&gt;Set-Service -Name TracSrvWrapper -StartupType disabled&lt;BR /&gt;Get-Service -Name TracSrvWrapper | Stop-Service&lt;BR /&gt;&lt;BR /&gt;echo HereSitTheContentsOfTrac.Config&amp;nbsp;| Out-File -FilePath c:\trac.config -Encoding default -NoNewline&lt;BR /&gt;attrib +A C:\trac.config&lt;BR /&gt;&lt;BR /&gt;cp "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\trac.config" "C:\windows\temp\trac.config"&lt;BR /&gt;cp "C:\trac.config" "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\trac.config"&lt;BR /&gt;&lt;BR /&gt;cd "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\" ; .\update_config_tool.exe "C:\Windows\Temp\trac.config" "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Set-Service -Name TracSrvWrapper -StartupType automatic&lt;BR /&gt;Get-Service -Name TracSrvWrapper | Start-Service&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's the JSON I pushed through SmartEndpoint.&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  &amp;nbsp; "Description": "Remote command push",&lt;BR /&gt;    "Type": "powershellunsigned",&lt;BR /&gt;  &amp;nbsp; "Arguments": "",&lt;BR /&gt;  &amp;nbsp; "Parameters": "",&lt;BR /&gt;  &amp;nbsp; "Command": "T3V0LVN0cmluZyAtSW5wd=="&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The "Command" option was substituted with a base64 version of the script copied above, once again excluded to keep things down in size.&lt;BR /&gt;I got the base64 command by running, the operation was "type 109" as described by&amp;nbsp;sk173414.&lt;/P&gt;&lt;PRE&gt;[Convert]::ToBase64String((gc C:\users\user.directory\Downloads\trac.ps1))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as restoring from quarantine goes, I performed the pushes through Infinity Portal, the file I was restoring was the EICAR test virus file, the original filepath of which was "C:\users\user.directory\Downloads\eicar.com".&lt;/P&gt;&lt;P&gt;I performed multiple restore operations using "C:\users\user.directory\Downloads\eicar.com" as the path, just "eicar.com" and finally&amp;nbsp;"C:\ProgramData\CheckPoint\Endpoint Security\Anti-Malware\quarantine\b3c2adbc28791f0f.klq" as the paths.&lt;/P&gt;&lt;P&gt;In all cases the result was a successful push operation, however the status was always "0 files restored, 0 still infected, 1 files not found."&lt;/P&gt;&lt;P&gt;I'm really not clear which file location I should be specifying here. I'll open a case with TAC in case we don't figure something out within the context of checkmates, but I see quite a few forum posts asking vaguely the same sorts of questions regarding push operations; I think some more clarity with documentation might be nice.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jan 2022 17:24:58 GMT</pubDate>
    <dc:creator>Swiftyyyy</dc:creator>
    <dc:date>2022-01-01T17:24:58Z</dc:date>
    <item>
      <title>Custom Push operation (Remote Command)</title>
      <link>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137451#M4948</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I've put together a short Powershell script that adds additional Remote Access VPN sites to existing deployments through "update_config_tool.exe".&lt;/P&gt;&lt;P&gt;The script works fine when I push it to the Endpoint from Infinity Portal Endpoint management, but I can't seem to get it working when deploying through a custom operation with SmartEndpoint.&lt;/P&gt;&lt;P&gt;I followed&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk173414" target="_blank"&gt;How to execute PowerShell scripts on Harmony Endpoint client machines (checkpoint.com)&lt;/A&gt;&amp;nbsp;but the push operations always get stuck on the "parameters" part &amp;amp; end up failing.&lt;/P&gt;&lt;P&gt;My script on Infinity Portal doesn't take any parameters or arguments, how do I specify those fields as empty with json?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 14:51:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137451#M4948</guid>
      <dc:creator>Swiftyyyy</dc:creator>
      <dc:date>2021-12-30T14:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Push operation (Remote Command)</title>
      <link>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137500#M4949</link>
      <description>&lt;P&gt;And I may as well bundle this question into the forum post while I'm at it.&lt;BR /&gt;How exactly do you perform Quarantine restorations as a Push Operation?&lt;BR /&gt;Which filepath do you enter into the parameters?&lt;BR /&gt;&lt;BR /&gt;I usually end up instructing users to use the RemediationManagerUI since I can't get pushes working.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 08:48:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137500#M4949</guid>
      <dc:creator>Swiftyyyy</dc:creator>
      <dc:date>2021-12-31T08:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Push operation (Remote Command)</title>
      <link>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137524#M4950</link>
      <description>&lt;P&gt;I wish I could give you a good answer here, but not an endpoint guy myself, I know very basic stuff abut it. If you can maybe post any screenshots/errors, we can try assist more. Might be worth opening official TAC case too.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 18:10:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137524#M4950</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2021-12-31T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Push operation (Remote Command)</title>
      <link>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137550#M4951</link>
      <description>&lt;P&gt;Of course, here's what I got. First image is the output of a successful operation. The push was done on Infinity Portal with a "Remote Command" operation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workingTracPS.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/14742i775F0D4894B08FB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="workingTracPS.png" alt="workingTracPS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The second image is a Custom Push.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NotWorkingTrac.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/14743i5BA9E64F9B17F064/image-size/large?v=v2&amp;amp;px=999" role="button" title="NotWorkingTrac.png" alt="NotWorkingTrac.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the script I used, though I'm ommitting the contents of the "trac.config" file to save space.&lt;/P&gt;&lt;PRE&gt;Set-Service -Name TracSrvWrapper -StartupType disabled&lt;BR /&gt;Get-Service -Name TracSrvWrapper | Stop-Service&lt;BR /&gt;&lt;BR /&gt;echo HereSitTheContentsOfTrac.Config&amp;nbsp;| Out-File -FilePath c:\trac.config -Encoding default -NoNewline&lt;BR /&gt;attrib +A C:\trac.config&lt;BR /&gt;&lt;BR /&gt;cp "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\trac.config" "C:\windows\temp\trac.config"&lt;BR /&gt;cp "C:\trac.config" "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\trac.config"&lt;BR /&gt;&lt;BR /&gt;cd "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect\" ; .\update_config_tool.exe "C:\Windows\Temp\trac.config" "C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Connect"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Set-Service -Name TracSrvWrapper -StartupType automatic&lt;BR /&gt;Get-Service -Name TracSrvWrapper | Start-Service&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here's the JSON I pushed through SmartEndpoint.&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  &amp;nbsp; "Description": "Remote command push",&lt;BR /&gt;    "Type": "powershellunsigned",&lt;BR /&gt;  &amp;nbsp; "Arguments": "",&lt;BR /&gt;  &amp;nbsp; "Parameters": "",&lt;BR /&gt;  &amp;nbsp; "Command": "T3V0LVN0cmluZyAtSW5wd=="&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The "Command" option was substituted with a base64 version of the script copied above, once again excluded to keep things down in size.&lt;BR /&gt;I got the base64 command by running, the operation was "type 109" as described by&amp;nbsp;sk173414.&lt;/P&gt;&lt;PRE&gt;[Convert]::ToBase64String((gc C:\users\user.directory\Downloads\trac.ps1))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as restoring from quarantine goes, I performed the pushes through Infinity Portal, the file I was restoring was the EICAR test virus file, the original filepath of which was "C:\users\user.directory\Downloads\eicar.com".&lt;/P&gt;&lt;P&gt;I performed multiple restore operations using "C:\users\user.directory\Downloads\eicar.com" as the path, just "eicar.com" and finally&amp;nbsp;"C:\ProgramData\CheckPoint\Endpoint Security\Anti-Malware\quarantine\b3c2adbc28791f0f.klq" as the paths.&lt;/P&gt;&lt;P&gt;In all cases the result was a successful push operation, however the status was always "0 files restored, 0 still infected, 1 files not found."&lt;/P&gt;&lt;P&gt;I'm really not clear which file location I should be specifying here. I'll open a case with TAC in case we don't figure something out within the context of checkmates, but I see quite a few forum posts asking vaguely the same sorts of questions regarding push operations; I think some more clarity with documentation might be nice.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 17:24:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/137550#M4951</guid>
      <dc:creator>Swiftyyyy</dc:creator>
      <dc:date>2022-01-01T17:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Push operation (Remote Command)</title>
      <link>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/138648#M5000</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/66534"&gt;@Swiftyyyy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please open a Ticket/Case/SR with TAC (endpoint team in TAC) to work on these issues further. You will need to open two separate Tickets/Cases/SRs for the issues.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:12:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/Custom-Push-operation-Remote-Command/m-p/138648#M5000</guid>
      <dc:creator>jcortez</dc:creator>
      <dc:date>2022-01-17T14:12:18Z</dc:date>
    </item>
  </channel>
</rss>

