<?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 Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command. in Privilege Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362720#M3515</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working with CyberArk Privileged Cloud&lt;B&gt; &lt;/B&gt;and using AutoIt to launch a PowerShell session. From there, I open a new PowerShell window under a domain user context using the runas command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once inside the new PowerShell window (as the domain user), I try to run the following command:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Import-Module ExchangeOnlineManagement&lt;/LI&gt;&lt;LI&gt;Connect-ExchangeOnline -UserPrincipalName user@domain.com&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it is throwing an error (screenshot attached/mentioned below). The same command works perfectly fine when run manually outside the CyberArk session or directly from a domain user login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional observations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The session initially opens as a local user.&lt;/LI&gt;&lt;LI&gt;AutoIt is being used to inject credentials and automate launching the second PowerShell window.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone successfully managed a similar setup—launching a PowerShell session as a domain user from within CyberArk (via AutoIt or another method) and running Exchange Online commands?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance or suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find the error screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000dDEJlIAO.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/92919i394DEB1AD5A0E7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000dDEJlIAO.png" alt="Field_Content_versions_oct20__068Vy00000dDEJlIAO.png" /&gt;&lt;/span&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2025 15:03:46 GMT</pubDate>
    <dc:creator>Naveen_Pammi</dc:creator>
    <dc:date>2025-06-26T15:03:46Z</dc:date>
    <item>
      <title>Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362720#M3515</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working with CyberArk Privileged Cloud&lt;B&gt; &lt;/B&gt;and using AutoIt to launch a PowerShell session. From there, I open a new PowerShell window under a domain user context using the runas command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once inside the new PowerShell window (as the domain user), I try to run the following command:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Import-Module ExchangeOnlineManagement&lt;/LI&gt;&lt;LI&gt;Connect-ExchangeOnline -UserPrincipalName user@domain.com&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, it is throwing an error (screenshot attached/mentioned below). The same command works perfectly fine when run manually outside the CyberArk session or directly from a domain user login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional observations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The session initially opens as a local user.&lt;/LI&gt;&lt;LI&gt;AutoIt is being used to inject credentials and automate launching the second PowerShell window.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone successfully managed a similar setup—launching a PowerShell session as a domain user from within CyberArk (via AutoIt or another method) and running Exchange Online commands?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance or suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Find the error screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Field_Content_versions_oct20__068Vy00000dDEJlIAO.png"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/92919i394DEB1AD5A0E7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Field_Content_versions_oct20__068Vy00000dDEJlIAO.png" alt="Field_Content_versions_oct20__068Vy00000dDEJlIAO.png" /&gt;&lt;/span&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 15:03:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362720#M3515</guid>
      <dc:creator>Naveen_Pammi</dc:creator>
      <dc:date>2025-06-26T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362721#M3516</link>
      <description>&lt;P&gt;Not sure if you have done this already but it is probably worth logging in to the PSM through RDP and then from there, manually doing runas with the user on powershell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I t could be an issue with the powershell version the PSM or some pre-reqs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assume connectivity is there but yeah, trying this manually would be my first thing to do to see if you get the same issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, compare versions from where it does work and where it does not.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 10:47:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362721#M3516</guid>
      <dc:creator>NathS</dc:creator>
      <dc:date>2025-07-04T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362722#M3517</link>
      <description>&lt;P&gt;Hi @Nathan Southgate​,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for replying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried manually running those commands then these commands are working fine but while launching through CyberArk I am getting those errors. Could you please help here.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 13:28:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362722#M3517</guid>
      <dc:creator>Naveen_Pammi</dc:creator>
      <dc:date>2025-07-04T13:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362723#M3518</link>
      <description>&lt;P&gt;Hi @NAVEEN KUMAR PAMMI​&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ruled out App Locker?  as a temporary measure for troubleshooting, put App Locker into Audit mode on the PSM Server and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:41:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362723#M3518</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2025-07-07T08:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362724#M3519</link>
      <description>&lt;P&gt;Hi @Michael C L McAughey​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I have put the app locker rules to Audit mode. Can you suggest if there is any other way to launch PowerShell as domain user or any other suggestions that would help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 08:55:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362724#M3519</guid>
      <dc:creator>Naveen_Pammi</dc:creator>
      <dc:date>2025-07-07T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Launching PowerShell via AutoIt with Domain User - Issue Running Connect-ExchangeOnline command.</title>
      <link>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362725#M3520</link>
      <description>&lt;P&gt;Having the same issue here. Let us know if any workaround is found. Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 14:57:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/privilege-cloud-discussions/launching-powershell-via-autoit-with-domain-user-issue-running/m-p/1362725#M3520</guid>
      <dc:creator>H.Kumarasinghe210164</dc:creator>
      <dc:date>2025-07-10T14:57:38Z</dc:date>
    </item>
  </channel>
</rss>

