Did anyone try PSM-Powershell Connection component? When you try to launch the session, it shows the PSM shadow user. Is there a way to run the power shell as administrator permanently or as the PAM user that launches the session?

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

Did anyone try PSM-Powershell Connection component? When you try to launch the session, it shows the PSM shadow user. Is there a way to run the power shell as administrator permanently or as the PAM user that launches the session?

L2 Linker
2 REPLIES 2

L4 Transporter

You can run anything using AutoIt and runas cmdlet.

All PSMShadowUsers have the actual user as a display name, so you can always easily extract the username from that, the password from the fetchSessionProperties() function and you are good to go 🙂

L2 Linker

I haven't made this specific connection component before - but my advice to you is that you should be extremely careful with this one.

 

  1. Because it's launching on the PSM, you (most likely) do NOT want it to run as Administrator. This will give users back-access to your PSM box.
  2. You should be launching it with the "RunAs" command of autoit, and launching it as the managed user. Something like this: $ConnectionClientPID = RunAs($TargetUsername,$TargetLogonDomain,$TargetPassword,2,$CLIENT_EXECUTABLE)
  3. For executable you'd want something like this 'powershell -noexit -command -import-module ActiveDirectory' (you'd need to have the AD management tools installed on the PSM, since I suspect you're wanting to run PowerShell to manage active directory).
  4. You will want to ensure that local PSM drives are blocked from access by PSM Shadow Users (check the KB and Installation Guide for steps).
  • 1297 Views
  • 2 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!