<?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: autoit3 test in powershell instead of cmd in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317262#M17161</link>
    <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe not the expected answer but still a good and useful reply thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 22:48:06 GMT</pubDate>
    <dc:creator>Michael_D</dc:creator>
    <dc:date>2022-04-28T22:48:06Z</dc:date>
    <item>
      <title>autoit3 test in powershell instead of cmd</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317260#M17159</link>
      <description>&lt;P&gt;Is it possible to run the autoit3 test of an au3 script in Powershell instead of command prompt?"The reason I am doing this is cmd.exe is blocked (group policy) and I am testing using powershell (runas)  as a shadow user to test the script....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using following command string but get an error "PSMGenericClientWrapper error: Failed to load DLL .\PSMGenericClientDriver.dll"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command is:&lt;/P&gt;&lt;P&gt;&amp;amp; 'C:\Program Files (x86)\AutoIt3\AutoIt3.exe' .\testscript.au3 .\ /test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running this as a domain account gets the same result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running the command in cmd.exe as a valid domain account works&lt;/P&gt;&lt;P&gt;'C:\Program Files (x86)\AutoIt3\AutoIt3.exe' .\testscript.au3 .\ /test&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 22:16:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317260#M17159</guid>
      <dc:creator>Michael_D</dc:creator>
      <dc:date>2022-04-27T22:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: autoit3 test in powershell instead of cmd</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317261#M17160</link>
      <description>&lt;P&gt;Hello @Michael Driscoll​,&lt;/P&gt;&lt;P&gt;Not really your expected answer as I have never used command-line to test the script but I'll share my trick anyway. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the SciTE editor that comes with AutoIt to develop and test at the same time. BTW, there is a &lt;A alt="https://www.autoitscript.com/site/autoit-script-editor/" href="https://www.autoitscript.com/site/autoit-script-editor/" target="_blank"&gt;second installer&lt;/A&gt;, aside from AutoIt, that greatly expands capabilities of SciTE for AutoIt development. But you don't need it for the next paragraph, it is just to spread the word and make things easier for people who tackle plugin development &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the View menu you'll find "Parameters Shift+F8" that allows you to specify the Components full path as well as the /test to let the script run. Then, a simple press of F5 (or menu Tools &amp;gt; Go) will launch the script. The only caveat is that it does not run as a shadow user, so you might encounter permission issues when testing through PSM afterwards, but usually that's the only thing that can go wrong after development and successful /test run through the editor/CLI. So I only have to run once or twice "through PSM" to make sure everything works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that this trick can work with any other IDE and that &lt;U&gt;development of PSM scripts shall not happen on your production PSM&lt;/U&gt; servers: as security best practice, it is recommended to "Compile" your AutoIt scripts from your development platform (workstation or pre-prod PSM) and only whitelist the .exe of your plugins in AppLocker to let them run on production servers (and never ever whitelist AutoIt3.exe). See note from &lt;A alt="https://cyberark-customers.force.com/s/article/Updates-Requiring-Action-April-2022" href="https://cyberark-customers.force.com/s/article/Updates-Requiring-Action-April-2022" target="_blank"&gt;this bulletin&lt;/A&gt; for more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J00000Jfu8CQAR.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/81852iCE425A495E27FF65/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J00000Jfu8CQAR.png" alt="Field_Content_versions_oct20__0682J00000Jfu8CQAR.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J00000Jfu7nQAB.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/81850iE9084D824CB308F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J00000Jfu7nQAB.png" alt="Field_Content_versions_oct20__0682J00000Jfu7nQAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 07:34:57 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317261#M17160</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-28T07:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: autoit3 test in powershell instead of cmd</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317262#M17161</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe not the expected answer but still a good and useful reply thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 22:48:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317262#M17161</guid>
      <dc:creator>Michael_D</dc:creator>
      <dc:date>2022-04-28T22:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: autoit3 test in powershell instead of cmd</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317263#M17162</link>
      <description>&lt;P&gt;I don't think PowerShell is your issue - I'm guessing you will get the exact same error if you manage to run AutoIt from cmd, or open and run the script in the SciTE Editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had a similar issue... since a few weeks ago, AutoIt scripts would execute fine on the PSM itself, but not on my client machine (also with "&lt;I&gt;PSMGenericClientWrapper error: Failed to load DLL .\PSMGenericClientDriver.dll&lt;/I&gt;" error message). For me, the solution was to take the file "&lt;B&gt;calibeay32102u-2013.dll&lt;/B&gt;" from the PSM's &lt;I&gt;Components &lt;/I&gt;folder and place it in the directory where the AutoIt script and PSMGenericClientDriver.dll reside.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is that another application on my client machine previously had the calibeay32102u-2013.dll in its application directory, and since that application directory was in the PATH, the calibeay32102u-2013.dll which is probably an indirect dependency of PSMGenericClientDriver.dll, could be loaded from there. Now that other application was updated to no longer use that specific 32-bit OpenSSL v1.0.2u library, and so PSMGenericClientDriver.dll can't find that dependency unless you specifically put it in the same directory.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 11:19:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/autoit3-test-in-powershell-instead-of-cmd/m-p/1317263#M17162</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-29T11:19:13Z</dc:date>
    </item>
  </channel>
</rss>

