Microsoft powershell through PSM?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Microsoft powershell through PSM?

L2 Linker

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 REPLIES 11

L7 Applicator

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.

L6 Presenter

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,

L4 Transporter

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,

L4 Transporter

One way is to use custom connection component. In the dispatcher launch PowerShell.

L2 Linker

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)

@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

No, no CyberArk person has responded to this thread.

That is a shame. Thanks for responding tho!

L3 Networker

Have a look at this: https://community.cyberark.com/s/article/PowerShell-as-standard-PSM-Connection-Component-iQAI

 

Can you please share the connection compoenet? I'm trying to create it but no success yet

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

  • 6197 Views
  • 11 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!