<?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: Power Shell Task execution on Windows Instance in HPE Morpheus Enterprise</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250254#M3428</link>
    <description>&lt;P&gt;If you are seeing &lt;CODE style="background : #f0f1f2;"&gt;ntauthority\system&lt;/CODE&gt;, the script is/should be executing over the Morpheus Agent.  I would have to see how your task is configured to further analyze.&lt;/P&gt;
&lt;P&gt;Please also take a look at &lt;A href="https://discuss.morpheusdata.com/t/example-rds-automation/110"&gt;this RDS installation&lt;/A&gt;. The steps would be very similar to installing IIS.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 19:47:13 GMT</pubDate>
    <dc:creator>cbunge</dc:creator>
    <dc:date>2023-08-31T19:47:13Z</dc:date>
    <item>
      <title>Power Shell Task execution on Windows Instance</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250253#M3427</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I provisioned the below Windows Instance Type (Morpheus Image) in Azure Public Cloud. Then Morpheus created a user that was defined under the user profile and I was able to access RDP with that user.&lt;/P&gt;
&lt;P&gt;I tried to execute powershell task on that instance to install IIS which used the Get-WindowsFeature cmdlet and Install-WindowsFeature cmdlet. From Morpheus portal, it says not recognized those cmdlet. I was able to use those cmdlets by using the RDP console with that username.&lt;/P&gt;
&lt;P&gt;When I check powershell execution user from Morpheus with “whoami powershell command” it shows &lt;STRONG&gt;nt authority\system&lt;/STRONG&gt; . is that reason we can’t use those cmdlets from Morpheus? or How we can do that?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150638iCB99C2E31C361933/image-size/large?v=v2&amp;amp;px=2000" role="button" title="d4ac93fcf4bd14f68fdcfef71b86312ab42f9276.png" alt="d4ac93fcf4bd14f68fdcfef71b86312ab42f9276.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And I also noticed, Morpheus defined the AzureAdmin username in the Server RPC setting. I am still not able to install IIS even though I changed the username and password in the RPC setting.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150453i0B1DB03A3010AB42/image-size/large?v=v2&amp;amp;px=2000" role="button" title="5a8307c9eeaea2be1be3d28c13d4d6632a0bdc1a.png" alt="5a8307c9eeaea2be1be3d28c13d4d6632a0bdc1a.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;It will be great if you can suggest.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;
Aung&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 17:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250253#M3427</guid>
      <dc:creator>AungKT</dc:creator>
      <dc:date>2023-08-31T17:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Power Shell Task execution on Windows Instance</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250254#M3428</link>
      <description>&lt;P&gt;If you are seeing &lt;CODE style="background : #f0f1f2;"&gt;ntauthority\system&lt;/CODE&gt;, the script is/should be executing over the Morpheus Agent.  I would have to see how your task is configured to further analyze.&lt;/P&gt;
&lt;P&gt;Please also take a look at &lt;A href="https://discuss.morpheusdata.com/t/example-rds-automation/110"&gt;this RDS installation&lt;/A&gt;. The steps would be very similar to installing IIS.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 19:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250254#M3428</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-08-31T19:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power Shell Task execution on Windows Instance</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250255#M3429</link>
      <description>&lt;P&gt;Thanks for sharing Chris.&lt;/P&gt;
&lt;P&gt;I created automation task with the command &lt;STRONG&gt;“Install-WindowsFeature -Name Web-Server -IncludeManagementTools”&lt;/STRONG&gt; with resource target type and enable elevated shell.&lt;/P&gt;
&lt;P&gt;So, I just provisioned another instance (same image) and kept the default settings of Server, RPC username is AzureAdmin and Morpheus defined the password automatically. And I executed the automation task at server level (not instance level), execution was successful, and the IIS service was installed. The PowerShell execution user was AzureAdmin.&lt;/P&gt;
&lt;P&gt;I don’t know why the agent method was used at the instance level of execution, even though I didn’t install agent due to the Morpheus portal being inaccessible from the Azure cloud.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;
Aung&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 04:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250255#M3429</guid>
      <dc:creator>AungKT</dc:creator>
      <dc:date>2023-09-01T04:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Power Shell Task execution on Windows Instance</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250256#M3430</link>
      <description>&lt;P&gt;Hi Aung,&lt;/P&gt;
&lt;P&gt;you can create a shell task and run the below script&lt;BR /&gt;
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command {get-windowsfeature}&lt;/P&gt;
&lt;P&gt;Alternately you can also create a PowerShell script template and run get-windowsfeature -name web-server&lt;/P&gt;
&lt;P&gt;Thanks&lt;BR /&gt;
Velan&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 15:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise/power-shell-task-execution-on-windows-instance/m-p/7250256#M3430</guid>
      <dc:creator />
      <dc:date>2023-09-20T15:03:53Z</dc:date>
    </item>
  </channel>
</rss>

