- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.
11-21-2018 11:45 PM
Hello,
Has anyone managed to get powershell working as a connection component through PSM? We have a use case for our solutions team to connect to endpoints in our remote data center this way and they need elevated credentials to do their tasks.
Thanks in advance
11-22-2018 01:08 AM
Have you considered using AIM for this? If its just about getting credentials into your PowerShell scripts, you could deploy a AIM central credential provider and then retrieve the credentials through a REST/SOAP call. You'll bypass PSM this way, so you won't have the session recorded.
11-22-2018 09:50 AM
I believe you require it because you have vaulted personal privileged IDs and Admin team requires to perform BAU activities which includes running power shell scripts.
You can consider creating a custom PSM connector using Autoit.
Hope that helps!
Thanks,
11-22-2018 09:50 AM
I believe you require it because you have vaulted personal privileged IDs and Admin team requires to perform BAU activities which includes running power shell scripts.
You can consider creating a custom PSM connector using Autoit.
Hope that helps!
Thanks,
11-22-2018 02:47 PM
One way is to use custom connection component. In the dispatcher launch PowerShell.
02-26-2020 12:00 PM
Is there a recommendation from a CyberArk person on this? (How to allow PowerShell in PSM without granting them access to running commands on the PSM itself which I'd find near impossible to figure out)
01-04-2021 11:28 AM
@Micah Holt did you ever figure this out? I have the same usecase. I was able to make a psm-powershell connection that spawns powershell shell, but faced with the same challenge on how NOT to allow running commands on the PSM server itself
01-04-2021 11:42 AM
No, no CyberArk person has responded to this thread.
01-04-2021 11:54 AM
That is a shame. Thanks for responding tho!
08-24-2021 02:51 AM
Have a look at this: https://community.cyberark.com/s/article/PowerShell-as-standard-PSM-Connection-Component-iQAI
04-11-2022 12:25 AM
Can you please share the connection compoenet? I'm trying to create it but no success yet
04-26-2022 09:20 AM
I made a PoC as follow:
1) copy the standard Connection Component
"PSM-SQLServerMgmtStudio"
2) paste the copied connection component and name it
2) on the new connection component change the
"Target Settings\ClientApp" to
""c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
-File "C:\tasks\CyberArk\PSM\Scripts\PoCTest.ps1"
"{Address}" "{UserName}" "{Password}"»
3) Create a dummy script PoCTest.ps1 to see if the
credentials are used in powershell (after this is working you can write a custom
Powershell Script with your appropriate commands you will use):
$Address = $args[0]
$User = $args[1]
$Password = $args[2]
Write-Output "Test Output"
Write-Output $Address
Write-Output $User
Write-Output $Password
Pause
4) sign the script
5) put the Script to the PSM system and to the
appropriate path
6) Install the PowerShell Modules (-scope allusers) you will use on the PSM Server
7) Add Applocker rule to allow powershell.exe to run from C:\windows\system32\windowspowershell\v1.0\powershell.exe
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

