<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help with Switching to Domain User Inside PowerShell Session (CyberArk Privileged Cloud) in Privilege Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/help-with-switching-to-domain-user-inside-powershell-session/m-p/1362751#M3522</link>
    <description>&lt;P&gt;Hi @NAVEEN KUMAR PAMMI​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To run commands as a domain user, it will require two steps. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the domain user's password securely from CyberArk through a psPAS module or REST API call.  &lt;/LI&gt;&lt;LI&gt;Then, you will need to have another PowerShell command / script to start a new activity using that domain user's password.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 21:07:01 GMT</pubDate>
    <dc:creator>M.Vora780263</dc:creator>
    <dc:date>2025-07-14T21:07:01Z</dc:date>
    <item>
      <title>Help with Switching to Domain User Inside PowerShell Session (CyberArk Privileged Cloud)</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/help-with-switching-to-domain-user-inside-powershell-session/m-p/1362750#M3521</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s the scenario:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I launch PowerShell from CPC, which runs as the shadow user.&lt;/P&gt;&lt;P&gt;Then, I use the following command to try switching to a domain user:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$credential = Get-Credential&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this does not switch the user&lt;/P&gt;&lt;P&gt;Has anyone successfully managed to switch to a domain user from within a shadow session using PowerShell?&lt;/P&gt;&lt;P&gt;Any suggestions or alternate methods to achieve this are appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000fjyV7IAI.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/93051iAFDE7D31CB40ABF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000fjyV7IAI.png" alt="Field_Content_versions_oct20__068Vy00000fjyV7IAI.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 08:18:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/help-with-switching-to-domain-user-inside-powershell-session/m-p/1362750#M3521</guid>
      <dc:creator>Naveen_Pammi</dc:creator>
      <dc:date>2025-07-14T08:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Switching to Domain User Inside PowerShell Session (CyberArk Privileged Cloud)</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/help-with-switching-to-domain-user-inside-powershell-session/m-p/1362751#M3522</link>
      <description>&lt;P&gt;Hi @NAVEEN KUMAR PAMMI​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To run commands as a domain user, it will require two steps. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get the domain user's password securely from CyberArk through a psPAS module or REST API call.  &lt;/LI&gt;&lt;LI&gt;Then, you will need to have another PowerShell command / script to start a new activity using that domain user's password.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 21:07:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/help-with-switching-to-domain-user-inside-powershell-session/m-p/1362751#M3522</guid>
      <dc:creator>M.Vora780263</dc:creator>
      <dc:date>2025-07-14T21:07:01Z</dc:date>
    </item>
  </channel>
</rss>

