<?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 Quest PowerShell Error in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Quest-PowerShell-Error/m-p/67784#M20389</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have created a Blueprism object to capture the response of PowerShell query which I am trying to execute from blueprism.&lt;/P&gt;
&lt;P&gt;The code was running perfectly fine till I was running the Windows PowerShell commands. Now as I am trying to run few of the Quest PowerShell commands to get the Active Directory details for example Get-QADGroup or Get-QADUser the script fails with the below error.&lt;/P&gt;
&lt;P&gt;Error - Could not load file or assembly 'System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;errorMessage="";&lt;BR /&gt;PowerShell ps = PowerShell.Create();&lt;BR /&gt;ps.Commands.AddScript(Input);&lt;BR /&gt;try{&lt;BR /&gt;&amp;nbsp;Collection&amp;lt;PSObject&amp;gt; res = ps.Invoke();&lt;BR /&gt;string tex="";&lt;BR /&gt;&amp;nbsp;foreach (var x in res)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;tex=tex+"\n"+x;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;output=tex;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;if (ps.HadErrors)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;foreach (ErrorRecord er in ps.Streams.Error)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;errorMessage=er.Exception.Message;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;catch (Exception e)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;output="";&lt;BR /&gt;&amp;nbsp;errorMessage=e.Message; &lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;DLL used - System.dll&lt;BR /&gt;System.Data.dll&lt;BR /&gt;System.xml.dll&lt;BR /&gt;System.Drawing.dll&lt;BR /&gt;System.Collections.dll&lt;BR /&gt;System.Dynamic.dll&lt;BR /&gt;System.Core.dll&lt;BR /&gt;System.Linq.dll&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vikash&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikash Anand&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;Ernst and Young&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Apr 2021 15:46:00 GMT</pubDate>
    <dc:creator>Vikash011</dc:creator>
    <dc:date>2021-04-28T15:46:00Z</dc:date>
    <item>
      <title>Quest PowerShell Error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Quest-PowerShell-Error/m-p/67784#M20389</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have created a Blueprism object to capture the response of PowerShell query which I am trying to execute from blueprism.&lt;/P&gt;
&lt;P&gt;The code was running perfectly fine till I was running the Windows PowerShell commands. Now as I am trying to run few of the Quest PowerShell commands to get the Active Directory details for example Get-QADGroup or Get-QADUser the script fails with the below error.&lt;/P&gt;
&lt;P&gt;Error - Could not load file or assembly 'System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.&lt;BR /&gt;&lt;BR /&gt;Code:&lt;BR /&gt;errorMessage="";&lt;BR /&gt;PowerShell ps = PowerShell.Create();&lt;BR /&gt;ps.Commands.AddScript(Input);&lt;BR /&gt;try{&lt;BR /&gt;&amp;nbsp;Collection&amp;lt;PSObject&amp;gt; res = ps.Invoke();&lt;BR /&gt;string tex="";&lt;BR /&gt;&amp;nbsp;foreach (var x in res)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;tex=tex+"\n"+x;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;output=tex;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;if (ps.HadErrors)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;foreach (ErrorRecord er in ps.Streams.Error)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;errorMessage=er.Exception.Message;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;catch (Exception e)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;output="";&lt;BR /&gt;&amp;nbsp;errorMessage=e.Message; &lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;&lt;BR /&gt;DLL used - System.dll&lt;BR /&gt;System.Data.dll&lt;BR /&gt;System.xml.dll&lt;BR /&gt;System.Drawing.dll&lt;BR /&gt;System.Collections.dll&lt;BR /&gt;System.Dynamic.dll&lt;BR /&gt;System.Core.dll&lt;BR /&gt;System.Linq.dll&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vikash&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikash Anand&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;Ernst and Young&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2021 15:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Quest-PowerShell-Error/m-p/67784#M20389</guid>
      <dc:creator>Vikash011</dc:creator>
      <dc:date>2021-04-28T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

