<?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: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409160#M84625</link>
    <description>&lt;P&gt;Hi @Tácio Santos​&amp;nbsp;I have developed script. My requirement is very simple. In MobaxTerm I created one session and saved that session as shortcut. Just My connector need to open that shortcut. it will ask Login ID and password and user an enter the login details manually. I dont want auto fill the details. When i run the script in Command prompt its working. But in PVWA its not working.  am getting dispatcher error. So i tried to configure Audit only in Applocker and its working. But its not opening the shortcut its opening the detailt exe page. my saved session is not available.&lt;/P&gt;&lt;P&gt;Default Page&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00001PP7cBIAT.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/95524i809CFDC9D93DE6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00001PP7cBIAT.png" alt="Field_Content_versions_oct20__068Vy00001PP7cBIAT.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Shortcut page: ( Which have saved session with IP address of the host)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00001PPjmDIAT.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/95526i77BD2BB201AC7D49/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00001PPjmDIAT.png" alt="Field_Content_versions_oct20__068Vy00001PPjmDIAT.png" /&gt;&lt;/span&gt;I have attached my code here.&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;#AutoIt3Wrapper_UseX64=n&lt;/P&gt;&lt;P&gt;Opt("MustDeclareVars", 1)&lt;/P&gt;&lt;P&gt;AutoItSetOption("WinTitleMatchMode", 3) ; EXACT_MATCH!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;============================================================&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PSM AutoIt Dispatcher Skeleton&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;------------------------------&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;; Use this skeleton to create your own&lt;/P&gt;&lt;P&gt;; connection components integrated with the PSM.&lt;/P&gt;&lt;P&gt;; Areas you may want to modify are marked&lt;/P&gt;&lt;P&gt;; with the string "CHANGE_ME".&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;; Created : April 2013&lt;/P&gt;&lt;P&gt;; Cyber-Ark Software Ltd.&lt;/P&gt;&lt;P&gt;;============================================================&lt;/P&gt;&lt;P&gt;#include "PSMGenericClientWrapper.au3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;; Consts &amp;amp; Globals&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;Global Const $DISPATCHER_NAME									&amp;nbsp;&amp;nbsp;= "PSM-sasbuda" ; CHANGE_ME&lt;/P&gt;&lt;P&gt;Global Const $CLIENT_EXECUTABLE									= "C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" ; CHANGE_ME&lt;/P&gt;&lt;P&gt;Global Const $sShortcut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "C:\Program Files (x86)\CyberArk\PSM\Components\sasbuda.lnk" ; CHANGE_ME&lt;/P&gt;&lt;P&gt;Global Const $ERROR_MESSAGE_TITLE&amp;nbsp;								= "PSM " &amp;amp; $DISPATCHER_NAME &amp;amp; " Dispatcher error message"&lt;/P&gt;&lt;P&gt;Global Const $LOG_MESSAGE_PREFIX 								= $DISPATCHER_NAME &amp;amp; " Dispatcher - "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Global $TargetUsername&lt;/P&gt;&lt;P&gt;Global $TargetPassword&lt;/P&gt;&lt;P&gt;Global $TargetAddress&lt;/P&gt;&lt;P&gt;Global $ConnectionClientPID = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;; Code&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;Exit Main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;; Main&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;Func Main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Init PSM Dispatcher utils wrapper&lt;/P&gt;&lt;P&gt;	ToolTip ("Initializing...")&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_Init() &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	LogWrite("successfully initialized Dispatcher Utils Wrapper")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Get the dispatcher parameters&lt;/P&gt;&lt;P&gt;	FetchSessionProperties()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	LogWrite("mapping local drives")&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_MapTSDrives() &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	LogWrite("starting client application")&lt;/P&gt;&lt;P&gt;	ToolTip ("Starting " &amp;amp; $DISPATCHER_NAME &amp;amp; "...")&lt;/P&gt;&lt;P&gt;	$ConnectionClientPID = Run($CLIENT_EXECUTABLE)&lt;/P&gt;&lt;P&gt;	if ($ConnectionClientPID == 0) Then&lt;/P&gt;&lt;P&gt;		Error(StringFormat("Failed to execute process [%s]", $CLIENT_EXECUTABLE, @error))&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; ------------------&lt;/P&gt;&lt;P&gt;	; Handle login here! ; CHANGE_ME&lt;/P&gt;&lt;P&gt;	; ------------------	&lt;/P&gt;&lt;P&gt;	WinActivate("MobaXterm Professional")&lt;/P&gt;&lt;P&gt;	Sleep(1000)&lt;/P&gt;&lt;P&gt;	;Local $sShortcut = "C:\Program Files (x86)\CyberArk\PSM\Components\sasbuda.lnk"&lt;/P&gt;&lt;P&gt;	ShellExecute($sShortcut)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;;MouseClick("left",57,31,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;;Sleep(500)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;;Send("^a{DEL}sasbuda{ENTER}")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Send PID to PSM so recording/monitoring can begin&lt;/P&gt;&lt;P&gt;	; Notice that until we send the PID, PSM blocks all user input.&lt;/P&gt;&lt;P&gt;	LogWrite("sending PID to PSM")&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_SendPID($ConnectionClientPID) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Terminate PSM Dispatcher utils wrapper&lt;/P&gt;&lt;P&gt;	LogWrite("Terminating Dispatcher Utils Wrapper")&lt;/P&gt;&lt;P&gt;	PSMGenericClient_Term()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	Return $PSM_ERROR_SUCCESS&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;==================================&lt;/P&gt;&lt;P&gt;; Functions&lt;/P&gt;&lt;P&gt;;==================================&lt;/P&gt;&lt;P&gt;; #FUNCTION# ====================================================================================================================&lt;/P&gt;&lt;P&gt;; Name...........: Error&lt;/P&gt;&lt;P&gt;; Description ...: An exception handler - displays an error message and terminates the dispatcher&lt;/P&gt;&lt;P&gt;; Parameters ....: $ErrorMessage - Error message to display&lt;/P&gt;&lt;P&gt;; 				&amp;nbsp;&amp;nbsp;$Code 		 - [Optional] Exit error code&lt;/P&gt;&lt;P&gt;; ===============================================================================================================================&lt;/P&gt;&lt;P&gt;Func Error($ErrorMessage, $Code = -1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; If the dispatcher utils DLL was already initialized, write an error log message and terminate the wrapper&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_IsInitialized()) Then&lt;/P&gt;&lt;P&gt;		LogWrite($ErrorMessage, True)&lt;/P&gt;&lt;P&gt;		PSMGenericClient_Term()&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	Local $MessageFlags = BitOr(0, 16, 262144) ; 0=OK button, 16=Stop-sign icon, 262144=MsgBox has top-most attribute set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	MsgBox($MessageFlags, $ERROR_MESSAGE_TITLE, $ErrorMessage)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; If the connection component was already invoked, terminate it&lt;/P&gt;&lt;P&gt;	if ($ConnectionClientPID &amp;lt;&amp;gt; 0) Then&lt;/P&gt;&lt;P&gt;		ProcessClose($ConnectionClientPID)&lt;/P&gt;&lt;P&gt;		$ConnectionClientPID = 0&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	Exit $Code&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; #FUNCTION# ====================================================================================================================&lt;/P&gt;&lt;P&gt;; Name...........: LogWrite&lt;/P&gt;&lt;P&gt;; Description ...: Write a PSMWinSCPDispatcher log message to standard PSM log file&lt;/P&gt;&lt;P&gt;; Parameters ....: $sMessage - [IN] The message to write&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$LogLevel - [Optional] [IN] Defined if the message should be handled as an error message or as a trace messge&lt;/P&gt;&lt;P&gt;; Return values .: $PSM_ERROR_SUCCESS - Success, otherwise error - Use PSMGenericClient_PSMGetLastErrorString for details.&lt;/P&gt;&lt;P&gt;; ===============================================================================================================================&lt;/P&gt;&lt;P&gt;Func LogWrite($sMessage, $LogLevel = $LOG_LEVEL_TRACE)&lt;/P&gt;&lt;P&gt;	Return PSMGenericClient_LogWrite($LOG_MESSAGE_PREFIX &amp;amp; $sMessage, $LogLevel)&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; #FUNCTION# ====================================================================================================================&lt;/P&gt;&lt;P&gt;; Name...........: PSMGenericClient_GetSessionProperty&lt;/P&gt;&lt;P&gt;; Description ...: Fetches properties required for the session&lt;/P&gt;&lt;P&gt;; Parameters ....: None&lt;/P&gt;&lt;P&gt;; Return values .: None&lt;/P&gt;&lt;P&gt;; ===============================================================================================================================&lt;/P&gt;&lt;P&gt;Func FetchSessionProperties() ; CHANGE_ME&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_GetSessionProperty("Username", $TargetUsername) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_GetSessionProperty("Password", $TargetPassword) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_GetSessionProperty("Address", $TargetAddress) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;============================&lt;/P&gt;&lt;P&gt;Can you please correct me where am doing wrong. Also after i click connect in PVWA it taking 4mins to mobaxterm to come up. I opened case as well. but no luck with that. Please help me on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2026 13:26:43 GMT</pubDate>
    <dc:creator>S.Jesuraj943144</dc:creator>
    <dc:date>2026-05-07T13:26:43Z</dc:date>
    <item>
      <title>How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409154#M84619</link>
      <description>&lt;UL&gt;&lt;LI&gt;Knowledge Article: &lt;A alt="https://community.cyberark.com/s/article/How-to-Configure-MobaXterm-as-a-Universal-Connector-in-CyberArk-PSM-with-AppLocker" href="https://community.cyberark.com/s/article/How-to-Configure-MobaXterm-as-a-Universal-Connector-in-CyberArk-PSM-with-AppLocker" target="_blank"&gt;How to Configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to use MobaXterm as an SSH client through CyberArk PSM via a Universal Connector (AutoIt dispatcher), we ran into a series of AppLocker blocks that required careful configuration. This post documents the problem and how we solved it.&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__068Vy00001LbLGzIAN.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/95418iD1E415FF092A213B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00001LbLGzIAN.png" alt="Field_Content_versions_oct20__068Vy00001LbLGzIAN.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Understanding MobaXterm's runtime environment and PSM Shadow Users&lt;/B&gt;&lt;/P&gt;&lt;P&gt;MobaXterm is not a simple SSH client — it ships a full embedded Unix environment (based on Cygwin/BusyBox) that gets extracted dynamically at runtime into the user's profile. This includes binaries like XWin_MobaX.exe, MoTTY.exe, hundreds of DLLs, and the full /usr/share/X11 structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a &lt;B&gt;PSM &lt;/B&gt;context, every recorded session runs under a&amp;nbsp;&lt;B&gt;shadow user&lt;/B&gt;&amp;nbsp;(PSMShadowUsers group), each with its own isolated profile. This means MobaXterm extracts its environment into a dynamic per-user path:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;C:\Users\PSM-2D00000000000000.PSM-01\AppData\Roaming\MobaXterm\slash\mx86_64b\&lt;/CODE&gt;&lt;P&gt;This behavior is the root cause of all the AppLocker issues — because the extraction path changes per session user, you can't simply hardcode it in the rules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;The AppLocker problem&lt;/B&gt;&lt;/P&gt;&lt;P&gt;PSM uses Windows AppLocker to restrict which applications can run during a session. The default policy is&amp;nbsp;&lt;B&gt;deny everything&lt;/B&gt;, with exceptions only for entries listed in&amp;nbsp;&lt;/P&gt;&lt;P&gt;PSMConfigureAppLocker.xml.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The errors that showed up in Event Viewer (filter: Error 8004) were:&lt;/P&gt;&lt;CODE&gt;APPDATA\ROAMING\MOBAXTERM\SLASH\MX86_64B\BIN\XWIN_MOBAX.EXE was prevented from running.
APPDATA\ROAMING\MOBAXTERM\SLASH\MX86_64B\BIN\LIBX11-6.DLL was prevented from running.&lt;/CODE&gt;&lt;P&gt;&lt;B&gt;Setting a persistent root directory for MobaXterm&lt;/B&gt;&lt;/P&gt;&lt;P&gt;To ensure MobaXterm always extracts its environment to a predictable, fixed path, we configured a persistent root directory inside the PSM Components folder:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create the folder on the PSM server:&lt;/LI&gt;&lt;/UL&gt;&lt;OL&gt;&lt;LI&gt;2 "C:\Program Files (x86)\CyberArk\PSM\Components\MobaXtermRoot"&lt;/LI&gt;&lt;/OL&gt;&lt;UL&gt;&lt;LI&gt;Open MobaXterm, go to&amp;nbsp;&lt;B&gt;Settings → Configuration → General → Persistent root (/) directory&lt;/B&gt;&amp;nbsp;and point it to the path above.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="068Vy00001LNKXjIAP.jpg"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/95408i00731D3AD34E41AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="068Vy00001LNKXjIAP.jpg" alt="068Vy00001LNKXjIAP.jpg" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On next launch, MobaXterm will extract its environment to: MobaXtermRoot\slash\mx86_64b\bin\&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Configuring PSMConfigureAppLocker.xml&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Edit the file at C:\Program Files (x86)\CyberArk\PSM\Hardening\PSMConfigureAppLocker.xml and add the entries &lt;B&gt;below inside&lt;/B&gt; &amp;lt;AllowedApplications&amp;gt;. Important: all &amp;lt;Application&amp;gt; entries must come before any &amp;lt;Libraries&amp;gt; — &lt;B&gt;the XSD schema enforces this order and will throw a validation error otherwise.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;&amp;lt;!-- MobaXterm --&amp;gt;
&amp;lt;Application Name="MobaXterm" Type="Exe" SessionType="*"
  Path="C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe"
  Method="Hash" /&amp;gt;
&amp;lt;Application Name="PSM-MobaXterm" Type="Exe" SessionType="*"
  Path="C:\Program Files (x86)\CyberArk\PSM\Components\PSM-MobaXterm.exe"
  Method="Hash" /&amp;gt;
&amp;lt;Application Name="MobaXtermAppDataExe" Type="Exe" SessionType="*"
  Path="C:\Users\*\AppData\Roaming\MobaXterm\*"
  Method="Path" /&amp;gt;
&amp;nbsp;
&amp;lt;Libraries Name="MobaXtermRoot" Type="Dll"
  Path="C:\Program Files (x86)\CyberArk\PSM\Components\MobaXtermRoot\*"
  Method="Path" /&amp;gt;
&amp;lt;Libraries Name="MobaXtermAppData" Type="Dll"
  Path="C:\Users\*\AppData\Roaming\MobaXterm\*"
  Method="Path" /&amp;gt;&lt;/CODE&gt;&lt;P&gt;&lt;B&gt;&lt;span class="lia-unicode-emoji" title=":exclamation_mark:"&gt;❗&lt;/span&gt;️ The C:\Users\* wildcard automatically covers all shadow users without needing one entry per user. The Libraries entries with Method="Path" allow both the DLLs from the fixed MobaXtermRoot directory and those extracted into each shadow user's AppData.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Applying the rules&lt;/B&gt;&lt;/P&gt;&lt;P&gt;After saving the XML, open PowerShell as administrator and run:&lt;/P&gt;&lt;CODE&gt;cd "C:\Program Files (x86)\CyberArk\PSM\Hardening"
.\PSMConfigureAppLocker.ps1&lt;/CODE&gt;&lt;P&gt;If new blocks appear after testing, check Event Viewer at Applications and Services Logs → Microsoft → Windows → AppLocker → EXE and DLL, filter by Error 8004, add the blocked paths to the XML, and rerun the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;This post is based on a real implementation in a CyberArk PAM Self-Hosted environment. Paths may vary depending on your PSM and MobaXterm versions.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 14:12:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409154#M84619</guid>
      <dc:creator>T.NepomucenoSantos</dc:creator>
      <dc:date>2026-04-15T14:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409155#M84620</link>
      <description>&lt;P&gt;Hey @Tácio Santos​&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really great info. I just want to confirm, this is all working as expected currently? Or is there further assistance needed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice work!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:23:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409155#M84620</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-04-16T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409156#M84621</link>
      <description>&lt;P&gt;&amp;nbsp;Everything is working correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:34:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409156#M84621</guid>
      <dc:creator>T.NepomucenoSantos</dc:creator>
      <dc:date>2026-04-16T12:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409157#M84622</link>
      <description>&lt;P&gt;Thanks @Tácio Santos​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you mind if we made this into a knowledge article so others can find it within our knowledge base? I can ensure you are credited as the author.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shoot me an email and lets discuss it: MJennison@PaloAltoNetworks.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 12:36:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409157#M84622</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-04-16T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409158#M84623</link>
      <description>&lt;P&gt;@Tácio Santos​&amp;nbsp;.. Thank you for your information. I have a same requirement to create PSM connector for MobaxTerm. Will you be able to share the AutoIT script for this. It will be great help for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subash.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 07:58:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409158#M84623</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2026-04-28T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409159#M84624</link>
      <description>&lt;P&gt;Hi Subash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your message — sure, I can share the AutoIt script used for the MobaXterm PSM connector.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to give some context about the implementation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this connector, I used the **sshpass** approach to handle authentication via CLI. This decision was made due to compatibility issues observed in some Linux environments, where custom login banners or interactive prompts interfered with the standard authentication flow in MobaXterm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically, certain systems displayed pre-login banners or additional prompts that caused the session to break or incorrectly expose the password when using traditional interface-based injection. To ensure a stable and consistent connection, I implemented a non-interactive authentication method using sshpass.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you may know, sshpass allows you to programmatically pass the password over SSH sessions, which is useful in automation scenarios where interactive input is unreliable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll share the script below — feel free to adapt it to your environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need help adjusting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;CODE&gt;#AutoIt3Wrapper_UseX64=n
Opt("MustDeclareVars", 1)
AutoItSetOption("WinTitleMatchMode", 3)
&amp;nbsp;
#include "PSMGenericClientWrapper.au3"
&amp;nbsp;
;=======================================
; Consts &amp;amp; Globals
;=======================================
Global Const $DISPATCHER_NAME       = "MobaXterm"
Global Const $CLIENT_EXECUTABLE     = "C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe"
Global Const $ERROR_MESSAGE_TITLE   = "PSM " &amp;amp; $DISPATCHER_NAME &amp;amp; " Dispatcher error message"
Global Const $LOG_MESSAGE_PREFIX    = $DISPATCHER_NAME &amp;amp; " Dispatcher - "
&amp;nbsp;
Global $TargetUsername
Global $TargetPassword
Global $TargetAddress
Global $ConnectionClientPID = 0
&amp;nbsp;
;=======================================
; Code
;=======================================
Exit Main()
&amp;nbsp;
;=======================================
; Main
;=======================================
Func Main()
&amp;nbsp;
    ToolTip("Initializing...")
    If (PSMGenericClient_Init() &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
        Error(PSMGenericClient_PSMGetLastErrorString())
    EndIf
&amp;nbsp;
    LogWrite("successfully initialized Dispatcher Utils Wrapper")
&amp;nbsp;
    FetchSessionProperties()
&amp;nbsp;
    LogWrite("mapping local drives")
    If (PSMGenericClient_MapTSDrives() &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
        Error(PSMGenericClient_PSMGetLastErrorString())
    EndIf
&amp;nbsp;
    LogWrite("starting client application")
    ToolTip("Starting " &amp;amp; $DISPATCHER_NAME &amp;amp; "...")
&amp;nbsp;
    ; Escapar aspas simples na senha
	Local $safePwd = StringReplace($TargetPassword, "'", "'\\''")
&amp;nbsp;
	; Montar comando
	Local $bashCmd = "command -v sshpass &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 || DEBIAN_FRONTEND=noninteractive apt install -y sshpass; clear; " &amp;amp; _
                 "sshpass -p " &amp;amp; Chr(39) &amp;amp; $safePwd &amp;amp; Chr(39) &amp;amp; _
                 " ssh -o StrictHostKeyChecking=no " &amp;amp; _
                 $TargetUsername &amp;amp; "@" &amp;amp; $TargetAddress
&amp;nbsp;
	; Executar
	$ConnectionClientPID = Run($CLIENT_EXECUTABLE &amp;amp; " -exec " &amp;amp; Chr(34) &amp;amp; $bashCmd &amp;amp; Chr(34))
&amp;nbsp;
    If $ConnectionClientPID = 0 Then
        Error(StringFormat("Failed to execute process [%s]", $CLIENT_EXECUTABLE))
    EndIf
&amp;nbsp;
    LogWrite("client started with PID: " &amp;amp; $ConnectionClientPID)
&amp;nbsp;
	LogWrite("MobaXterm window ready, sending PID to PSM")
&amp;nbsp;
    If (PSMGenericClient_SendPID($ConnectionClientPID) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
        Error(PSMGenericClient_PSMGetLastErrorString())
    EndIf
&amp;nbsp;
    ; Fecha popup de salvar senha caso apareça
    Local $timeout = 30000 ; 30 segundos
    Local $timer = TimerInit()
    While 1
        If WinExists("[CLASS:TFormStorePasswords]") Then
            WinClose("[CLASS:TFormStorePasswords]")
            LogWrite("password store popup closed")
            ExitLoop
        EndIf
        If TimerDiff($timer) &amp;gt; $timeout Then
            LogWrite("no password store popup detected, continuing")
            ExitLoop
        EndIf
        Sleep(500)
    WEnd
&amp;nbsp;
    LogWrite("Terminating Dispatcher Utils Wrapper")
    PSMGenericClient_Term()
&amp;nbsp;
    Return $PSM_ERROR_SUCCESS
EndFunc
&amp;nbsp;
;=======================================
; Functions
;=======================================
Func Error($ErrorMessage, $Code = -1)
    If (PSMGenericClient_IsInitialized()) Then
        LogWrite($ErrorMessage, True)
        PSMGenericClient_Term()
    EndIf
&amp;nbsp;
    Local $MessageFlags = BitOr(0, 16, 262144)
    MsgBox($MessageFlags, $ERROR_MESSAGE_TITLE, $ErrorMessage)
&amp;nbsp;
    If ($ConnectionClientPID &amp;lt;&amp;gt; 0) Then
        ProcessClose($ConnectionClientPID)
        $ConnectionClientPID = 0
    EndIf
&amp;nbsp;
    Exit $Code
EndFunc
&amp;nbsp;
Func LogWrite($sMessage, $LogLevel = $LOG_LEVEL_TRACE)
    Return PSMGenericClient_LogWrite($LOG_MESSAGE_PREFIX &amp;amp; $sMessage, $LogLevel)
EndFunc
&amp;nbsp;
Func FetchSessionProperties()
    If (PSMGenericClient_GetSessionProperty("Username", $TargetUsername) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
        Error(PSMGenericClient_PSMGetLastErrorString())
    EndIf
&amp;nbsp;
    If (PSMGenericClient_GetSessionProperty("Password", $TargetPassword) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
        Error(PSMGenericClient_PSMGetLastErrorString())
    EndIf
&amp;nbsp;
    If (PSMGenericClient_GetSessionProperty("Address", $TargetAddress) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
        Error(PSMGenericClient_PSMGetLastErrorString())
    EndIf
EndFunc&lt;/CODE&gt;&lt;P&gt;&amp;nbsp;In the connector, it will be necessary to add these parameters so that the Command Line Concealer can act.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Client specific&lt;/B&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;WaitBeforeCmdlineParmsHide = 30000&lt;/LI&gt;&lt;LI&gt;CmdLineParmsHideTimeout = 60000&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Note&lt;/B&gt;: This time may vary from environment to environment depending on connection speed/performance.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2026 14:19:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409159#M84624</guid>
      <dc:creator>T.NepomucenoSantos</dc:creator>
      <dc:date>2026-04-28T14:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409160#M84625</link>
      <description>&lt;P&gt;Hi @Tácio Santos​&amp;nbsp;I have developed script. My requirement is very simple. In MobaxTerm I created one session and saved that session as shortcut. Just My connector need to open that shortcut. it will ask Login ID and password and user an enter the login details manually. I dont want auto fill the details. When i run the script in Command prompt its working. But in PVWA its not working.  am getting dispatcher error. So i tried to configure Audit only in Applocker and its working. But its not opening the shortcut its opening the detailt exe page. my saved session is not available.&lt;/P&gt;&lt;P&gt;Default Page&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00001PP7cBIAT.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/95524i809CFDC9D93DE6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00001PP7cBIAT.png" alt="Field_Content_versions_oct20__068Vy00001PP7cBIAT.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Shortcut page: ( Which have saved session with IP address of the host)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00001PPjmDIAT.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/95526i77BD2BB201AC7D49/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00001PPjmDIAT.png" alt="Field_Content_versions_oct20__068Vy00001PPjmDIAT.png" /&gt;&lt;/span&gt;I have attached my code here.&lt;/P&gt;&lt;P&gt;================&lt;/P&gt;&lt;P&gt;#AutoIt3Wrapper_UseX64=n&lt;/P&gt;&lt;P&gt;Opt("MustDeclareVars", 1)&lt;/P&gt;&lt;P&gt;AutoItSetOption("WinTitleMatchMode", 3) ; EXACT_MATCH!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;============================================================&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PSM AutoIt Dispatcher Skeleton&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;------------------------------&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;; Use this skeleton to create your own&lt;/P&gt;&lt;P&gt;; connection components integrated with the PSM.&lt;/P&gt;&lt;P&gt;; Areas you may want to modify are marked&lt;/P&gt;&lt;P&gt;; with the string "CHANGE_ME".&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;; Created : April 2013&lt;/P&gt;&lt;P&gt;; Cyber-Ark Software Ltd.&lt;/P&gt;&lt;P&gt;;============================================================&lt;/P&gt;&lt;P&gt;#include "PSMGenericClientWrapper.au3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;; Consts &amp;amp; Globals&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;Global Const $DISPATCHER_NAME									&amp;nbsp;&amp;nbsp;= "PSM-sasbuda" ; CHANGE_ME&lt;/P&gt;&lt;P&gt;Global Const $CLIENT_EXECUTABLE									= "C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" ; CHANGE_ME&lt;/P&gt;&lt;P&gt;Global Const $sShortcut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "C:\Program Files (x86)\CyberArk\PSM\Components\sasbuda.lnk" ; CHANGE_ME&lt;/P&gt;&lt;P&gt;Global Const $ERROR_MESSAGE_TITLE&amp;nbsp;								= "PSM " &amp;amp; $DISPATCHER_NAME &amp;amp; " Dispatcher error message"&lt;/P&gt;&lt;P&gt;Global Const $LOG_MESSAGE_PREFIX 								= $DISPATCHER_NAME &amp;amp; " Dispatcher - "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Global $TargetUsername&lt;/P&gt;&lt;P&gt;Global $TargetPassword&lt;/P&gt;&lt;P&gt;Global $TargetAddress&lt;/P&gt;&lt;P&gt;Global $ConnectionClientPID = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;; Code&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;Exit Main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;; Main&lt;/P&gt;&lt;P&gt;;=======================================&lt;/P&gt;&lt;P&gt;Func Main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Init PSM Dispatcher utils wrapper&lt;/P&gt;&lt;P&gt;	ToolTip ("Initializing...")&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_Init() &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	LogWrite("successfully initialized Dispatcher Utils Wrapper")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Get the dispatcher parameters&lt;/P&gt;&lt;P&gt;	FetchSessionProperties()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	LogWrite("mapping local drives")&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_MapTSDrives() &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	LogWrite("starting client application")&lt;/P&gt;&lt;P&gt;	ToolTip ("Starting " &amp;amp; $DISPATCHER_NAME &amp;amp; "...")&lt;/P&gt;&lt;P&gt;	$ConnectionClientPID = Run($CLIENT_EXECUTABLE)&lt;/P&gt;&lt;P&gt;	if ($ConnectionClientPID == 0) Then&lt;/P&gt;&lt;P&gt;		Error(StringFormat("Failed to execute process [%s]", $CLIENT_EXECUTABLE, @error))&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; ------------------&lt;/P&gt;&lt;P&gt;	; Handle login here! ; CHANGE_ME&lt;/P&gt;&lt;P&gt;	; ------------------	&lt;/P&gt;&lt;P&gt;	WinActivate("MobaXterm Professional")&lt;/P&gt;&lt;P&gt;	Sleep(1000)&lt;/P&gt;&lt;P&gt;	;Local $sShortcut = "C:\Program Files (x86)\CyberArk\PSM\Components\sasbuda.lnk"&lt;/P&gt;&lt;P&gt;	ShellExecute($sShortcut)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;;MouseClick("left",57,31,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;;Sleep(500)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;;Send("^a{DEL}sasbuda{ENTER}")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Send PID to PSM so recording/monitoring can begin&lt;/P&gt;&lt;P&gt;	; Notice that until we send the PID, PSM blocks all user input.&lt;/P&gt;&lt;P&gt;	LogWrite("sending PID to PSM")&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_SendPID($ConnectionClientPID) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; Terminate PSM Dispatcher utils wrapper&lt;/P&gt;&lt;P&gt;	LogWrite("Terminating Dispatcher Utils Wrapper")&lt;/P&gt;&lt;P&gt;	PSMGenericClient_Term()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	Return $PSM_ERROR_SUCCESS&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;==================================&lt;/P&gt;&lt;P&gt;; Functions&lt;/P&gt;&lt;P&gt;;==================================&lt;/P&gt;&lt;P&gt;; #FUNCTION# ====================================================================================================================&lt;/P&gt;&lt;P&gt;; Name...........: Error&lt;/P&gt;&lt;P&gt;; Description ...: An exception handler - displays an error message and terminates the dispatcher&lt;/P&gt;&lt;P&gt;; Parameters ....: $ErrorMessage - Error message to display&lt;/P&gt;&lt;P&gt;; 				&amp;nbsp;&amp;nbsp;$Code 		 - [Optional] Exit error code&lt;/P&gt;&lt;P&gt;; ===============================================================================================================================&lt;/P&gt;&lt;P&gt;Func Error($ErrorMessage, $Code = -1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; If the dispatcher utils DLL was already initialized, write an error log message and terminate the wrapper&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_IsInitialized()) Then&lt;/P&gt;&lt;P&gt;		LogWrite($ErrorMessage, True)&lt;/P&gt;&lt;P&gt;		PSMGenericClient_Term()&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	Local $MessageFlags = BitOr(0, 16, 262144) ; 0=OK button, 16=Stop-sign icon, 262144=MsgBox has top-most attribute set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	MsgBox($MessageFlags, $ERROR_MESSAGE_TITLE, $ErrorMessage)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	; If the connection component was already invoked, terminate it&lt;/P&gt;&lt;P&gt;	if ($ConnectionClientPID &amp;lt;&amp;gt; 0) Then&lt;/P&gt;&lt;P&gt;		ProcessClose($ConnectionClientPID)&lt;/P&gt;&lt;P&gt;		$ConnectionClientPID = 0&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	Exit $Code&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; #FUNCTION# ====================================================================================================================&lt;/P&gt;&lt;P&gt;; Name...........: LogWrite&lt;/P&gt;&lt;P&gt;; Description ...: Write a PSMWinSCPDispatcher log message to standard PSM log file&lt;/P&gt;&lt;P&gt;; Parameters ....: $sMessage - [IN] The message to write&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$LogLevel - [Optional] [IN] Defined if the message should be handled as an error message or as a trace messge&lt;/P&gt;&lt;P&gt;; Return values .: $PSM_ERROR_SUCCESS - Success, otherwise error - Use PSMGenericClient_PSMGetLastErrorString for details.&lt;/P&gt;&lt;P&gt;; ===============================================================================================================================&lt;/P&gt;&lt;P&gt;Func LogWrite($sMessage, $LogLevel = $LOG_LEVEL_TRACE)&lt;/P&gt;&lt;P&gt;	Return PSMGenericClient_LogWrite($LOG_MESSAGE_PREFIX &amp;amp; $sMessage, $LogLevel)&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;; #FUNCTION# ====================================================================================================================&lt;/P&gt;&lt;P&gt;; Name...........: PSMGenericClient_GetSessionProperty&lt;/P&gt;&lt;P&gt;; Description ...: Fetches properties required for the session&lt;/P&gt;&lt;P&gt;; Parameters ....: None&lt;/P&gt;&lt;P&gt;; Return values .: None&lt;/P&gt;&lt;P&gt;; ===============================================================================================================================&lt;/P&gt;&lt;P&gt;Func FetchSessionProperties() ; CHANGE_ME&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_GetSessionProperty("Username", $TargetUsername) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_GetSessionProperty("Password", $TargetPassword) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;	if (PSMGenericClient_GetSessionProperty("Address", $TargetAddress) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then&lt;/P&gt;&lt;P&gt;		Error(PSMGenericClient_PSMGetLastErrorString())&lt;/P&gt;&lt;P&gt;	EndIf&lt;/P&gt;&lt;P&gt;EndFunc&lt;/P&gt;&lt;P&gt;============================&lt;/P&gt;&lt;P&gt;Can you please correct me where am doing wrong. Also after i click connect in PVWA it taking 4mins to mobaxterm to come up. I opened case as well. but no luck with that. Please help me on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 13:26:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409160#M84625</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2026-05-07T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409161#M84626</link>
      <description>&lt;P&gt;Hi Subash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your objective is to allow PAM users to use accounts that are not managed by PAM and let the user manually inform username and password, I would recommend using the Secure Connect (Ad Hoc Connections) method instead of trying to persist MobaXterm saved sessions inside the PSM sandbox environment.&lt;/P&gt;&lt;P&gt;CyberArk documentation:&lt;/P&gt;&lt;P&gt;&lt;A alt="https://docs.cyberark.com/pam-self-hosted/15.0/en/content/pasimp/connecting-with-secure-connect.htm" href="https://docs.cyberark.com/pam-self-hosted/15.0/en/content/pasimp/connecting-with-secure-connect.htm" target="_blank"&gt;https://docs.cyberark.com/pam-self-hosted/15.0/en/content/pasimp/connecting-with-secure-connect.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, keep in mind that the PSM Shadow Users used to create the sandbox session are temporary/ephemeral users. Because of that, MobaXterm saved sessions, profiles, shortcuts (.lnk), and user environment data are not guaranteed to persist after the PSM cleanup cycle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another important point is that the first startup of MobaXterm inside a fresh Shadow User profile may take additional time while MobaXterm creates its initial environment, registry settings, folders, plugins, and session files.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura de tela de 2026-05-07 15-10-39" src="sfdc://069Vy00001OvOIlIAN" /&gt;This behavior can cause the dispatcher timeout you are seeing (~4 minutes). I would recommend increasing the connection component timeout values to avoid timeout errors during the first execution.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 18:17:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409161#M84626</guid>
      <dc:creator>T.NepomucenoSantos</dc:creator>
      <dc:date>2026-05-07T18:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409162#M84627</link>
      <description>&lt;P&gt;@Tácio Santos​&amp;nbsp;.. I just tried to open MobaxTerm.exe with RunAs ShadowUser. This itself takes 2mins to launch.  &lt;/P&gt;&lt;P&gt;If I Run "C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" in normal cmd its opening within a sec. But If I launch the same in cmd with ShadowUser it takes more than 2mins.&lt;/P&gt;&lt;P&gt;If we fix this then i think my connector will work.&lt;/P&gt;&lt;P&gt;Will you be able to help me on this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 10:56:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409162#M84627</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2026-05-12T10:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409163#M84628</link>
      <description>&lt;P&gt;Hi Subash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still didn't fully understand the objective of this approach. However, when launching MobaXterm with a Shadow User that doesn't yet have its environment created, the startup time can increase significantly. Could you launch MobaXterm with the same Shadow User more than once and let me know if the issue persists? After the environment is created, subsequent launches with the same Shadow User should be faster.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 16:24:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409163#M84628</guid>
      <dc:creator>T.NepomucenoSantos</dc:creator>
      <dc:date>2026-05-12T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409164#M84629</link>
      <description>&lt;P&gt;Hi @Tácio Santos​&amp;nbsp;.. Every time when I launch MobaXterm its taking same 2mins.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 07:59:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409164#M84629</guid>
      <dc:creator>S.Jesuraj943144</dc:creator>
      <dc:date>2026-05-13T07:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409165#M84630</link>
      <description>&lt;P&gt;Hi Subash,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please send us the AutoIt connector script (.au3) currently being used, along with a video showing the behavior?&lt;/P&gt;&lt;P&gt;Please include the full step-by-step process until the issue occurs, especially demonstrating the 2-minute delay when launching MobaXterm.&lt;/P&gt;&lt;P&gt;You can send the files directly to this email address: REMOVED&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tacio Santos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Moderator Edit: PII removed. &lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 13:13:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409165#M84630</guid>
      <dc:creator>T.NepomucenoSantos</dc:creator>
      <dc:date>2026-05-13T13:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure MobaXterm as a Universal Connector in CyberArk PSM with AppLocker</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409166#M84631</link>
      <description>&lt;P&gt;Hey @Tácio Santos​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to remove your email for security reasons as it goes against our code of conduct. I appreciate you helping with this, though. I just can't leave it in the thread. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2026 15:22:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/how-to-configure-mobaxterm-as-a-universal-connector-in-cyberark/m-p/1409166#M84631</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2026-05-13T15:22:04Z</dc:date>
    </item>
  </channel>
</rss>

