- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-14-2025 01:18 AM
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!
07-14-2025 02:07 PM
Hi @NAVEEN KUMAR PAMMI
To run commands as a domain user, it will require two steps.
Hope it helps !
07-14-2025 02:07 PM
Hi @NAVEEN KUMAR PAMMI
To run commands as a domain user, it will require two steps.
Hope it helps !
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!

