<?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: Remove Error Output in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120671#M21635</link>
    <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11378"&gt;@MATTHEWKOOSWN﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without looking at the code, its difficult to point why is this error thrown. If you are sure that despite this error exception, your tasks get done, &amp;nbsp;and its only a matter of ignoring this exception you can try to use&amp;nbsp;&amp;nbsp;-ErrorAction SilentlyContinue on the Invoke-Command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this doesn't resolve&amp;nbsp;it, the code would need to be debugged to remove the root cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 10:58:19 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2016-06-28T10:58:19Z</dc:date>
    <item>
      <title>Remove Error Output</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120653#M21632</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a workflow command step that actually works and completes all the required actions of that command step but throws the following error causing the step to show up as failed in the workflow and not continuing. &amp;nbsp;The command step uses invoke-command to launch a batch file that uses psexec to launch a powershell script remotely on another server. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Management.Automation.RemoteException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want that error to go away so the command step shows as completed successfully and continues on, especially since it really did complete its required action successfully. &amp;nbsp;I've tried redirecting to null with 2&amp;gt;$null and also | Out-Null and also a try catch block that doesn't throw the error execption message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that powershell invoke-command and pssession allows me to execute powershell commands remotely however I have tried numerous times to make it work that way without any success, it seems to need an actual logged in session before executing the powershell script and psexec has been the only way I've been able to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:13:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120653#M21632</guid>
      <dc:creator>MATTHEWKOOSWN</dc:creator>
      <dc:date>2025-06-04T20:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Error Output</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120671#M21635</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11378"&gt;@MATTHEWKOOSWN﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without looking at the code, its difficult to point why is this error thrown. If you are sure that despite this error exception, your tasks get done, &amp;nbsp;and its only a matter of ignoring this exception you can try to use&amp;nbsp;&amp;nbsp;-ErrorAction SilentlyContinue on the Invoke-Command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this doesn't resolve&amp;nbsp;it, the code would need to be debugged to remove the root cause.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 10:58:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120671#M21635</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-06-28T10:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Error Output</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120696#M21638</link>
      <description>&lt;P&gt;Thanks Abhishek,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the silently continue route as well and it still errors out with the same error message. &amp;nbsp;The code is below, the error gets generated by the Invoke-Command from the ScriptBlock. &amp;nbsp;Do you have any other suggestions I could try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$pass=ConvertFromSecureToPlain -SecurePassword $UserCreds.Password&lt;BR /&gt;$username=$UserCreds.Username&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;$resultObj = Invoke-Command -ScriptBlock {try{c:\varonis.bat $fileserverid $sharename $username $pass}catch{}} -ErrorAction SilentlyContinue | Out-Null&lt;BR /&gt;}&lt;BR /&gt;catch&lt;BR /&gt;{&lt;BR /&gt;$result = "${resultObj.ToString()}${warnMsg}${errorMsg}" + $_.Exception.Message;&lt;BR /&gt;#throw $result&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The varonis.bat file that the scriptblock is calling is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;c:\windows\system32\psexec.exe \\hovaraspdm01 /accepteula /u %3 /p %4 cmd /c "START /WAIT Powershell c:\AddShareToVaronis.ps1 -fileserverid %1 -sharename %2"&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 16:58:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120696#M21638</guid>
      <dc:creator>MATTHEWKOOSWN</dc:creator>
      <dc:date>2016-06-28T16:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Error Output</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120747#M21645</link>
      <description>&lt;P&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11378"&gt;@MATTHEWKOOSWN﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;I'll have the rest of the discussion on email. Later I'll post my conclusion on this thread for other to see.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 11:31:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/120747#M21645</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2016-06-29T11:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Error Output</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/121372#M21791</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="UserName lia-user-name lia-user-rank-Occasional-Contributor"&gt;&lt;A href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11378" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Matthew&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to clarify Powershell only enters in a catch block after a try error, so you should use -ErrorAction Stop, otherwise it will simply crash, not executing catch block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second point is that Powershell have a problem with double hop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at this article if you want to understand it: &lt;A title="Powershell Double-Hop" href="https://blogs.technet.microsoft.com/heyscriptingguy/2013/04/04/enabling-multihop-remoting/" target="_blank"&gt;https://blogs.technet.microsoft.com/heyscriptingguy/2013/04/04/enabling-multihop-remoting/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 02:01:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Remove-Error-Output/m-p/121372#M21791</guid>
      <dc:creator>FelipeMafra</dc:creator>
      <dc:date>2016-07-18T02:01:26Z</dc:date>
    </item>
  </channel>
</rss>

