<?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 Powershell started via blueprism does not load installed packages in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95812#M44236</link>
    <description>&lt;P&gt;I am launching PowerShell via blueprism and need to change the expiration date on some users. I have the packages installed on the machine and can run the code if I open PowerShell outside of the blueprism environment.&lt;/P&gt;
&lt;P&gt;Blueprism start location is "C:\Program Files\Blue Prism Limited\Blue Prism Automate" Local PowerShell starts in network drive "G:" where the packages are installed.&lt;/P&gt;
&lt;P&gt;I have tried to change the location, but it does not help. Elevated permission is not the problem and I have checked that the code works.&lt;/P&gt;
&lt;P&gt;This is the error message:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Set-ADAccountExpiration : The 'Set-ADAccountExpiration' command was found in the module 'ActiveDirectoryModule', but the module could not be loaded.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Feb 2022 09:09:23 GMT</pubDate>
    <dc:creator>AndersChristens</dc:creator>
    <dc:date>2022-02-18T09:09:23Z</dc:date>
    <item>
      <title>Powershell started via blueprism does not load installed packages</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95812#M44236</link>
      <description>&lt;P&gt;I am launching PowerShell via blueprism and need to change the expiration date on some users. I have the packages installed on the machine and can run the code if I open PowerShell outside of the blueprism environment.&lt;/P&gt;
&lt;P&gt;Blueprism start location is "C:\Program Files\Blue Prism Limited\Blue Prism Automate" Local PowerShell starts in network drive "G:" where the packages are installed.&lt;/P&gt;
&lt;P&gt;I have tried to change the location, but it does not help. Elevated permission is not the problem and I have checked that the code works.&lt;/P&gt;
&lt;P&gt;This is the error message:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Set-ADAccountExpiration : The 'Set-ADAccountExpiration' command was found in the module 'ActiveDirectoryModule', but the module could not be loaded.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 09:09:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95812#M44236</guid>
      <dc:creator>AndersChristens</dc:creator>
      <dc:date>2022-02-18T09:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell started via blueprism does not load installed packages</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95813#M44237</link>
      <description>Hi Anders - when you say 'launching PowerShell' do you mean you are using Application Manager to start powershell.exe? If you search this forum you'll find discussions on executing powershell via code stages rather than via the VBO launcher. There's also an example of this on the &lt;A href="https://digitalexchange.blueprism.com/dx/entry/9648/solution/utility---powershell?_ga=2.144795383.256370506.1645122243-323351065.1626685148&amp;amp;_gac=1.45205392.1643030607.EAIaIQobChMIsrSZ273K9QIVGoBQBh133Q0-EAAYAyAAEgJWZPD_BwE&amp;amp;_gl=1*7p901h*_ga*MzIzMzUxMDY1LjE2MjY2ODUxNDg.*_ga_MFBQ2KFZ1L*MTY0NTE3NzQwMS4yOTcuMS4xNjQ1MTc4NjQzLjA." target="_blank" rel="noopener"&gt;DX&lt;/A&gt; you can try.</description>
      <pubDate>Fri, 18 Feb 2022 10:02:45 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95813#M44237</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-02-18T10:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell started via blueprism does not load installed packages</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95814#M44238</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="6f9e3e66-c83b-4a26-a7ee-83d1576c526b"&gt;@John Carter&lt;/A&gt;&lt;BR /&gt;Sorry I didn't clarify that in the original post, but yes, I'm trying to launch via Application manager. The reason I'm doing it this way is that I couldn't get it to work via the code stage post. The problem was that I could not get it to save and use variables, but if I could copy/paste it into a PowerShell prompt I could make it work.&lt;BR /&gt;​</description>
      <pubDate>Fri, 18 Feb 2022 11:36:32 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95814#M44238</guid>
      <dc:creator>AndersChristens</dc:creator>
      <dc:date>2022-02-18T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell started via blueprism does not load installed packages</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95815#M44239</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cf64dcb0-a0b5-4d18-a5df-b845f591817a" data-tag-text="@Anders Christensen" href="https://community.blueprism.com/network/profile?UserKey=cf64dcb0-a0b5-4d18-a5df-b845f591817a" data-itemmentionkey="babcc1cb-19df-4ee7-a0db-0dc659ca627b"&gt;@Anders Christensen&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;FWIW - Here's an example of passing parameters into a PowerShell script using the Utility - PowerShell VBO that &lt;A class="user-content-mention" data-sign="@" data-contactkey="bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-tag-text="@John Carter" href="https://community.blueprism.com/network/profile?UserKey=bf6edb31-c42f-4040-9e4b-d47f91046c5a" data-itemmentionkey="f1f41047-aa29-4175-9ef3-c8f4bd441999"&gt;@John Carter&lt;/A&gt; referenced. I have a very simple PowerShell script that simply echoes whatever input message has been supplied using the &lt;STRONG&gt;-message&lt;/STRONG&gt; parameter. Then it executes the standard &lt;STRONG&gt;Get-CimInstance&lt;/STRONG&gt; command. All of the output is then captured and returned as output via the VBO.&lt;BR /&gt;&lt;BR /&gt;If I wanted to pass in multiple parameters, I would need to make use the &lt;STRONG&gt;Delimiter&lt;/STRONG&gt; input parameter to specify what custom delimiter I was using to separate my input data. So I might use the pipe character ( | ) which would look something like this with multiple parameters: &lt;STRONG&gt;-message "This is a test" | -priority 3 | ...&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Hopefully that helps a bit.​&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34879.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/34944iD2B90A4F3DD42394/image-size/large?v=v2&amp;amp;px=999" role="button" title="34879.png" alt="34879.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34880.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/34948i9C359E417D14AFD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="34880.png" alt="34880.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34881.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/34942iA188DD1BC9C80145/image-size/large?v=v2&amp;amp;px=999" role="button" title="34881.png" alt="34881.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34882.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/34945i6CC851D34D59740F/image-size/large?v=v2&amp;amp;px=999" role="button" title="34882.png" alt="34882.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34883.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/34943iC3AFB13B5CD05B13/image-size/large?v=v2&amp;amp;px=999" role="button" title="34883.png" alt="34883.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34884.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/34947i92A2C2B58938AC44/image-size/large?v=v2&amp;amp;px=999" role="button" title="34884.png" alt="34884.png" /&gt;&lt;/span&gt;&lt;BR /&gt;​Cheers,&lt;BR /&gt;Eric</description>
      <pubDate>Fri, 18 Feb 2022 13:54:16 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Powershell-started-via-blueprism-does-not-load-installed/m-p/95815#M44239</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-02-18T13:54:16Z</dc:date>
    </item>
  </channel>
</rss>

