<?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 Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration? in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302915#M6066</link>
    <description />
    <pubDate>Wed, 30 Mar 2022 03:44:11 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2022-03-30T03:44:11Z</dc:date>
    <item>
      <title>Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302915#M6066</link>
      <description />
      <pubDate>Wed, 30 Mar 2022 03:44:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302915#M6066</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-03-30T03:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302916#M6067</link>
      <description>&lt;CODE&gt;#AutoIt3Wrapper_UseX64=n
Opt("MustDeclareVars", 1)
AutoItSetOption("WinTitleMatchMode", 3) ; EXACT_MATCH!
AutoItSetOption("WinDetectHiddenText",1)
&amp;nbsp;
;============================================================
;             PSM AutoIt Dispatcher Skeleton
;             ------------------------------
;
; Use this skeleton to create your own 
; connection components integrated with the PSM.
; Areas you may want to modify are marked
; with the string "CHANGE_ME".
;
; Created : April 2013
; Cyber-Ark Software Ltd.
;============================================================
#include "PSMGenericClientWrapper.au3"
&amp;nbsp;
;=======================================
; Consts &amp;amp; Globals
;=======================================
Global Const $DISPATCHER_NAME									= "Microsoft ADUC" ; CHANGE_ME
Global Const $CLIENT_EXECUTABLE									= 'mmc "C:\Windows\System32\dsa.msc"' ; CHANGE_ME
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 $TargetLogonDomain
Global $ConnectionClientPID = 0
&amp;nbsp;
;=======================================
; Code
;=======================================
Exit Main()
&amp;nbsp;
;=======================================
; Main
;=======================================
Func Main()
&amp;nbsp;
	; Init PSM Dispatcher utils wrapper
	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;
	; Get the dispatcher parameters
	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;
	; ------------------
	; Handle login here! ; CHANGE_ME
	; ------------------	
&amp;nbsp;
	; Execute RunAs command to run ssms under the PSM Shdaow User's profile, but pass the network credentials of
   	; the target (specified by the "2" logon type)
	$ConnectionClientPID = RunAs($TargetUsername,$TargetLogonDomain,$TargetPassword,2,$CLIENT_EXECUTABLE)
	if ($ConnectionClientPID == 0) Then
		Error(StringFormat("Failed to execute process [%s]", $CLIENT_EXECUTABLE, @error))
	EndIf
&amp;nbsp;
	; Send PID to PSM as early as possible so recording/monitoring can begin
 	LogWrite("sending PID to PSM")
 	if (PSMGenericClient_SendPID($ConnectionClientPID) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then
 		Error(PSMGenericClient_PSMGetLastErrorString())
 	EndIf
&amp;nbsp;
	; Terminate PSM Dispatcher utils wrapper
	LogWrite("Terminating Dispatcher Utils Wrapper")
	PSMGenericClient_Term()
&amp;nbsp;
	Return $PSM_ERROR_SUCCESS
EndFunc
&amp;nbsp;
;==================================
; Functions
;==================================
; #FUNCTION# ====================================================================================================================
; Name...........: Error
; Description ...: An exception handler - displays an error message and terminates the dispatcher
; Parameters ....: $ErrorMessage - Error message to display
; 				   $Code 		 - [Optional] Exit error code
; ===============================================================================================================================
Func Error($ErrorMessage, $Code = -1)
&amp;nbsp;
	; If the dispatcher utils DLL was already initialized, write an error log message and terminate the wrapper
	if (PSMGenericClient_IsInitialized()) Then
		LogWrite($ErrorMessage, True)
		PSMGenericClient_Term()
	EndIf
&amp;nbsp;
	Local $MessageFlags = BitOr(0, 16, 262144) ; 0=OK button, 16=Stop-sign icon, 262144=MsgBox has top-most attribute set
&amp;nbsp;
	MsgBox($MessageFlags, $ERROR_MESSAGE_TITLE, $ErrorMessage)
&amp;nbsp;
	; If the connection component was already invoked, terminate it
	if ($ConnectionClientPID &amp;lt;&amp;gt; 0) Then
		ProcessClose($ConnectionClientPID)
		$ConnectionClientPID = 0
	EndIf
&amp;nbsp;
	Exit $Code
EndFunc
&amp;nbsp;
; #FUNCTION# ====================================================================================================================
; Name...........: LogWrite
; Description ...: Write a PSMWinSCPDispatcher log message to standard PSM log file
; Parameters ....: $sMessage - [IN] The message to write
;                  $LogLevel - [Optional] [IN] Defined if the message should be handled as an error message or as a trace messge
; Return values .: $PSM_ERROR_SUCCESS - Success, otherwise error - Use PSMGenericClient_PSMGetLastErrorString for details.
; ===============================================================================================================================
Func LogWrite($sMessage, $LogLevel = $LOG_LEVEL_TRACE)
	Return PSMGenericClient_LogWrite($LOG_MESSAGE_PREFIX &amp;amp; $sMessage, $LogLevel)
EndFunc
&amp;nbsp;
; #FUNCTION# ====================================================================================================================
; Name...........: PSMGenericClient_GetSessionProperty
; Description ...: Fetches properties required for the session 
; Parameters ....: None
; Return values .: None
; ===============================================================================================================================
Func FetchSessionProperties() ; CHANGE_ME
	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
	
	if (PSMGenericClient_GetSessionProperty("LogonDomain", $TargetLogonDomain) &amp;lt;&amp;gt; $PSM_ERROR_SUCCESS) Then		;Added CWA
		Error(PSMGenericClient_PSMGetLastErrorString())
	EndIf
	
EndFunc&lt;/CODE&gt;&lt;P&gt;Give this a try - take note of the line "$ConnectionClientPID = RunAs($TargetUsername,$TargetLogonDomain,$TargetPassword,2,$CLIENT_EXECUTABLE)"&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 19:08:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302916#M6067</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T19:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302917#M6068</link>
      <description>&lt;P&gt;Thank you, can you also share the connection component settings under PVWA?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 19:30:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302917#M6068</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T19:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302918#M6069</link>
      <description>&lt;P&gt;No problem. Just copy the "PSM-VNCClientSample" connection component, and replace the values under Target Settings so they match. You may need to change &lt;B&gt;Protocol &lt;/B&gt;from VNC to RDP. You can leave dummy.exe in &lt;B&gt;ClientApp&lt;/B&gt;. If you compile this AutoIt script, you can just change the name of the executable in &lt;B&gt;ClientDispatcher&lt;/B&gt;. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also run it without compiling by entering the following for &lt;B&gt;ClientDispatcher &lt;/B&gt;(not recommended):&lt;/P&gt;&lt;P&gt;"C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "{PSMComponentsFolder}\&amp;lt;yourscript.au3&amp;gt;" "PSMComponentsFolder"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, don't forget to change your AppLocker rules to allow MMC.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 19:42:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302918#M6069</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T19:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302919#M6070</link>
      <description>&lt;P&gt;This is what I see - &lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J00000JLOfqQAH.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/81694i5F5C4F8486A8883B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J00000JLOfqQAH.png" alt="Field_Content_versions_oct20__0682J00000JLOfqQAH.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:17:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302919#M6070</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302920#M6071</link>
      <description>&lt;P&gt;I guess, you need to add this in to applocker exception.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:35:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302920#M6071</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302921#M6072</link>
      <description>&lt;P&gt;@Mohamed Vellanath​&amp;nbsp;@Mohamed Vellanath​&amp;nbsp;, this may help you to configure other mmc snap-in, give it a try...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:37:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302921#M6072</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T22:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302922#M6073</link>
      <description>&lt;P&gt;All the Dlls under the component folder are already allowed under app locker exceptions. &lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__0682J00000JLRA4QAP.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/81700iD46C5EE623FEBD37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__0682J00000JLRA4QAP.png" alt="Field_Content_versions_oct20__0682J00000JLRA4QAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 22:57:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302922#M6073</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-05T22:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302923#M6074</link>
      <description>&lt;P&gt;I suspect this is either a permissions error (hardening not run correctly with the shadow users defined) or an Applocker issue. &lt;/P&gt;&lt;P&gt;Check Event Log:  Microsoft--&amp;gt;AppLocker  and filter on events for code 8003 and see if the DLL is being blocked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 07:50:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302923#M6074</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-07T07:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, does anyone have a clean step by step process and scripts for PSM ADUC connector integration and configuration?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302924#M6075</link>
      <description>&lt;P&gt;Are you getting a UAC prompt?  If so, may want to runas invoker&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Global Const $CLIENT_EXECUTABLE&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 "set __COMPAT_LAYER=RUNASINVOKER &amp;amp;&amp;amp; C:\Windows\System32\mmc.exe C:\PSMComponents\PSM-ADUC.msc"'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ConnectionClientPID = RunAs($TargetUsername,$TargetLogonDomain,$TargetPassword,1,@ComSpec &amp;amp; $CLIENT_EXECUTABLE, @ScriptDir, @SW_HIDE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might also have to add the target group to "Allow log on Locally" in secpol--&amp;gt;Security Settings--&amp;gt;Local Policies--&amp;gt;User Rights Assignment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is your issue, but ADUC is pretty tricky&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 17:19:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/hi-does-anyone-have-a-clean-step-by-step-process-and-scripts-for/m-p/1302924#M6075</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2022-04-21T17:19:31Z</dc:date>
    </item>
  </channel>
</rss>

