<?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 PSM. Developing connector. How to run program and batch file at the same time. in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342579#M36643</link>
    <description>&lt;P&gt;PSM. Developing connector. How to run program and batch file at the same time.&lt;/P&gt;&lt;P&gt;Hello. I developing connector. This connector must do this: map local drives and map drive from remote system (Windows OS based) to PSM server and open application Explorer++&lt;/P&gt;&lt;P&gt;At final i have: Explorer++.exe and batch file ShareMappper.bat in PSM\Components&amp;nbsp;folder.&lt;/P&gt;&lt;P&gt;Batch file have 3 variables: %1 is {Address}, %2 is {username} and %3 is {Password}, and map folder from remote system and then call Explorer++.exe&lt;/P&gt;&lt;P&gt;In Administration\Configuration Options\Connection Components, I create new compnonent with settings: ClientApp: Explorer++.exe, ClientDispatcher: ShareMappingDispatcher.bat {Address} {Username} {Password}, ClientInvokeType: Dispatcher, Lock Application Window: Yes.&lt;/P&gt;&lt;P&gt;When i click to Connect, session started and i see Explorer++.exe with mapped drives (Both local from my computer and remote system) but I cannot control Explorer.exe with mouse. After several seconds PSM popup message: Session has been closed. PSMSR605E [21212xzcz-1s47-gfch-9a67nxcv878] Error occured while waiting dispatcher to communicate (Error details: [PSMSR606E] [21212xzcz-1s47-gfch-9a67nxcv878] Timeout occured while waiting for a specific components to end]).&lt;/P&gt;&lt;P&gt;I try to increase ConnectionComponentInitTimeout from 20000 to 60000 and decrease to 0, set Lock Application Window to No with no results.&lt;/P&gt;&lt;P&gt;Batch file run succesfull directly from PSM Server.&lt;/P&gt;&lt;P&gt;Who know how to do right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 07:17:25 GMT</pubDate>
    <dc:creator>vyacheslavsh</dc:creator>
    <dc:date>2018-10-31T07:17:25Z</dc:date>
    <item>
      <title>PSM. Developing connector. How to run program and batch file at the same time.</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342579#M36643</link>
      <description>&lt;P&gt;PSM. Developing connector. How to run program and batch file at the same time.&lt;/P&gt;&lt;P&gt;Hello. I developing connector. This connector must do this: map local drives and map drive from remote system (Windows OS based) to PSM server and open application Explorer++&lt;/P&gt;&lt;P&gt;At final i have: Explorer++.exe and batch file ShareMappper.bat in PSM\Components&amp;nbsp;folder.&lt;/P&gt;&lt;P&gt;Batch file have 3 variables: %1 is {Address}, %2 is {username} and %3 is {Password}, and map folder from remote system and then call Explorer++.exe&lt;/P&gt;&lt;P&gt;In Administration\Configuration Options\Connection Components, I create new compnonent with settings: ClientApp: Explorer++.exe, ClientDispatcher: ShareMappingDispatcher.bat {Address} {Username} {Password}, ClientInvokeType: Dispatcher, Lock Application Window: Yes.&lt;/P&gt;&lt;P&gt;When i click to Connect, session started and i see Explorer++.exe with mapped drives (Both local from my computer and remote system) but I cannot control Explorer.exe with mouse. After several seconds PSM popup message: Session has been closed. PSMSR605E [21212xzcz-1s47-gfch-9a67nxcv878] Error occured while waiting dispatcher to communicate (Error details: [PSMSR606E] [21212xzcz-1s47-gfch-9a67nxcv878] Timeout occured while waiting for a specific components to end]).&lt;/P&gt;&lt;P&gt;I try to increase ConnectionComponentInitTimeout from 20000 to 60000 and decrease to 0, set Lock Application Window to No with no results.&lt;/P&gt;&lt;P&gt;Batch file run succesfull directly from PSM Server.&lt;/P&gt;&lt;P&gt;Who know how to do right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 07:17:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342579#M36643</guid>
      <dc:creator>vyacheslavsh</dc:creator>
      <dc:date>2018-10-31T07:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: PSM. Developing connector. How to run program and batch file at the same time.</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342580#M36644</link>
      <description>&lt;P&gt;A dispatcher does more than just start an application. Among others, it attaches the PSM session to your application and allows you to manipulate it. When the attached application is closed, the PSM force closes the session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would do in you case: use an AutoIt dispatcher. It will do what a dispatcher is supposed to do and you won't have to whitelist cmd.exe in AppLocker to allow execution of your batch script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Connection Components, duplicate the PSM-VNCViewer sample. In its Target Settings, specify the name of your AutoIt script (it does not exist yet though)&lt;/LI&gt;&lt;LI&gt;On PSM under PSM\Components\, duplicate the PSMAutoIt skeleton file and rename it so it matches the CC definition (step1)&lt;/LI&gt;&lt;LI&gt;Adapt the script to mount the remote system drive using AutoIT functions. You have access to username, address and password through variables $TargetUsername, $TargetAddress and $TargetPassword anywhere in your script (they are defined in global scope). Finally use Run() to launch Explorer++&lt;/LI&gt;&lt;LI&gt;Allow AutoIt.exe (if not already) and Explorer++.exe in AppLocker config&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more detailed instructions, search for "universal connector" in official implementation guide or OnlineHelp.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 09:45:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342580#M36644</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2018-10-31T09:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: PSM. Developing connector. How to run program and batch file at the same time.</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342581#M36645</link>
      <description>&lt;P&gt;Thank you! I was do disc mapping in dispatcher used "DriveMapAdd" AutoIt function.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 08:06:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/psm-developing-connector-how-to-run-program-and-batch-file-at/m-p/1342581#M36645</guid>
      <dc:creator>vyacheslavsh</dc:creator>
      <dc:date>2018-11-02T08:06:12Z</dc:date>
    </item>
  </channel>
</rss>

