Help with Switching to Domain User Inside PowerShell Session (CyberArk Privileged Cloud)

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

Help with Switching to Domain User Inside PowerShell Session (CyberArk Privileged Cloud)

L1 Bithead

Hi,

 

I’m currently working with CyberArk Privileged Cloud (CPC) and facing an issue when trying to switch to a domain user inside a PowerShell session.

 

Here’s the scenario:

 

I launch PowerShell from CPC, which runs as the shadow user.

Then, I use the following command to try switching to a domain user:

 

 

$credential = Get-Credential 

 

However, this does not switch the user

Has anyone successfully managed to switch to a domain user from within a shadow session using PowerShell?

Any suggestions or alternate methods to achieve this are appreciated!

 Field_Content_versions_oct20__068Vy00000fjyV7IAI.png

1 accepted solution

Accepted Solutions

L7 Applicator

Hi @NAVEEN KUMAR PAMMI​ 

 

To run commands as a domain user, it will require two steps.

 

  1. Get the domain user's password securely from CyberArk through a psPAS module or REST API call.
  2. Then, you will need to have another PowerShell command / script to start a new activity using that domain user's password.

 

Hope it helps !

View solution in original post

1 REPLY 1

L7 Applicator

Hi @NAVEEN KUMAR PAMMI​ 

 

To run commands as a domain user, it will require two steps.

 

  1. Get the domain user's password securely from CyberArk through a psPAS module or REST API call.
  2. Then, you will need to have another PowerShell command / script to start a new activity using that domain user's password.

 

Hope it helps !

  • 1 accepted solution
  • 63 Views
  • 1 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!