<?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: How to run Windows CLI commands from WFA workflow? in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8665#M1805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following Microsoft directions to install PowerShell 3.0, it wants me to load either .NET Framework 4.0 or 4.5 which includes PowerShell 3.0. Do we care whether .NET is 4.0 or 4.5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 17:58:02 GMT</pubDate>
    <dc:creator>bachman</dc:creator>
    <dc:date>2014-03-14T17:58:02Z</dc:date>
    <item>
      <title>How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8606#M1787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize for the noob question. I have a customer that wants to control a Windows-based application via the CLI using WFA. My question is how issue those commands to a Windows server? If it were Linux, I could use ssh and it would be simple. I haven't found anything that explains how to do this - or did I miss a document?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:41:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8606#M1787</guid>
      <dc:creator>bachman</dc:creator>
      <dc:date>2025-06-05T05:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8610#M1789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fastest answer that I can give is to use remote powershell calls.&amp;nbsp; You can use Invoke-Command.&amp;nbsp; Just make sure that you either pass credentials or that the WFA service is running as a user with rights on the box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://technet.microsoft.com/en-us/library/dd819505.aspx" title="http://technet.microsoft.com/en-us/library/dd819505.aspx" target="_blank"&gt;http://technet.microsoft.com/en-us/library/dd819505.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy Goodrum, NetApp&lt;/P&gt;&lt;P&gt;The Pirate&lt;/P&gt;&lt;P&gt;Twitter: @virtpirate&lt;/P&gt;&lt;P&gt;Blog: &lt;A href="http://www.virtpirate.com" target="_blank"&gt;www.virtpirate.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:41:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8610#M1789</guid>
      <dc:creator>goodrum</dc:creator>
      <dc:date>2014-02-28T17:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8615#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Invoke-Command is a very good option for running remote commands on a destination Windows host. It allows to run direct commands or execute a Powershell script ( on remote server). I also remember having to use Get-WmiObject as well, but Invoke-Command is definitely simpler. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;It has the following prerequisites.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1. On the Powershell console of the Destination Windows host, configure winrm ( Windows Remote Management ).&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2. Make your WFA server as a TrustedHost:&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;winrm set winrm/config/client @{TrustedHosts="wfahost_name_or_IP"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;3. This is enough to get the command execution working. But there are other winrm config option you can set as per your needs. Read more here :&lt;A href="http://pubs.vmware.com/orchestrator-plugins/index.jsp?topic=%2Fcom.vmware.using.powershell.plugin.doc_10%2FGUID-D4ACA4EF-D018-448A-866A-DECDDA5CC3C1.html" title="http://pubs.vmware.com/orchestrator-plugins/index.jsp?topic=%2Fcom.vmware.using.powershell.plugin.doc_10%2FGUID-D4ACA4EF-D018-448A-866A-DECDDA5CC3C1.html" target="_blank"&gt;http://pubs.vmware.com/orchestrator-plugins/index.jsp?topic=%2Fcom.vmware.using.powershell.plugin.doc_10%2FGUID-D4ACA4EF-D018-448A-866A-DECDDA5CC3C1.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Attaching the command which can be imported in a WFA2.1 or above. I must say,it was little more difficult than I initially thought. WFA doesn't support [scriptblock] as an input parameter type. So the command in [string] entered needs to be created as a [ScriptBlock] type in the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Command code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;param (&lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Command to execute")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$CmdBlock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Windows Host Name")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$WinHost,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Posh script path")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$PoshScript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$creds =&amp;nbsp; Get-WfaCredentials -Host $WinHost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Convernt string command block to Script Block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ScriptBlock = [Scriptblock]::Create($CmdBlock) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($CmdBlock) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$returnData= Invoke-Command -ComputerName $WinHost -Credential $creds -ScriptBlock $ScriptBlock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-WFALogger -Info -Message $returnData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($PoshScript) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Posh Script should be present on the WFA server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoke-Command -ComputerName $WinHost -Credential $creds -FilePath $PoshScript&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 10:37:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8615#M1792</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-03-03T10:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8620#M1795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One minor correction the the above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif; color: #454545; background-color: #ffffff;"&gt;2. Make your WFA server as a TrustedHost:&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: green; font-style: inherit; background-color: #ffffff; font-family: inherit;"&gt;&lt;STRONG&gt;winrm set winrm/config/client @{TrustedHosts="wfahost_name_or_IP"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;winrm set winrm/config/client '@{TrustedHosts="wfa_hostname_or_IP"}'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The @{Trusted...} section needs to be enclosed in single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-style: inherit; background-color: #ffffff; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 03:45:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8620#M1795</guid>
      <dc:creator>bachman</dc:creator>
      <dc:date>2014-03-06T03:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8625#M1796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the sample command. I imported it into my WFA 2.2RC1 server, but am getting errors on execution. I believe that WinRM and PowerShell are configured correctly, as I can execute the remote command from the PowerShell prompt on the WFA host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of error when doing "Test" of the imported command:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/25120_WFA_by_NetApp.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of execution of Invoke-Command from PowerShell prompt on WFA server:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://community.netapp.com/legacyfs/online/25121_WFA_Beta.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 04:40:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8625#M1796</guid>
      <dc:creator>bachman</dc:creator>
      <dc:date>2014-03-06T04:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8629#M1797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh Phil. A bit of miss from me. This is not the code error actually, its thrown by the &lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Get-WFALogger -Info -Message $returnData&lt;/SPAN&gt; which expects that $returnData will always be a String type and in your case its returning a list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the line : &lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Get-WFALogger -Info -Message $returnData&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from code and it will work. Also modified the code to convert to script block after only when CmdBlock is provided.&lt;/P&gt;&lt;P&gt;$returnData will depend on how output your command returns, it could be a list, object anything, string etc. Now its up to you to parse it and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching the new .dar file with the correction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;param (&lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Command to execute")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$CmdBlock,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Windows Host Name")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$WinHost,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Posh script path")]&lt;/P&gt;&lt;P&gt;&amp;nbsp; [string]$PoshScript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$creds =&amp;nbsp; Get-WfaCredentials -Host $WinHost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Convernt string command block to Script Block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($CmdBlock) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ScriptBlock = [Scriptblock]::Create($CmdBlock) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$returnData= Invoke-Command -ComputerName $WinHost -Credential $creds -ScriptBlock $ScriptBlock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ($PoshScript) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Posh Script should be present on the WFA server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoke-Command -ComputerName $WinHost -Credential $creds -FilePath $PoshScript&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 07:34:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8629#M1797</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-03-06T07:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8638#M1798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sinhaa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last noob question. Is there a facility to display the return value? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main reason I'm building this is to show a customer we can control NetBackup through WFA. Ultimately they want to add a step to provisioning workflows to add volumes to a NetBackup policy as the volumes are created, so they are protected "automatically".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Being able to show the results - a list of the NetBackup policies - is all I need to complete this. Then we'll have them engage our ACS folks to help with the actual implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 13:02:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8638#M1798</guid>
      <dc:creator>bachman</dc:creator>
      <dc:date>2014-03-06T13:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8643#M1799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ &lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Is there a facility to display the return value?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;====&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Of course. But you need to know what is the type of object returned by the Command. That you can know by manually running the Invoke-command once. Like for the command you have provided in your list, the return object is an array list. If you use powershell3.0, the Powershell ISE shows very well the kind of objects returned and what methods you can call on them. Its useful, but its up to you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;so from the script you can get lit like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt; $first_value = $returnData[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;$second_value = $returnData[1]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;If these are not objects themselves but strings, then you can always use Get-WFALogger to print them now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;If they are then you can still call method on them to get string values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Get-WFALogger -Info -Message $&lt;/SPAN&gt;first_value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Get-WFALogger -Info -Message $second&lt;/SPAN&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;_value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;I hope this helps. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;warm regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;Abhishek&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 13:26:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8643#M1799</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-03-06T13:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8647#M1800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is PowerShell 3.0 preferred?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 19:05:58 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8647#M1800</guid>
      <dc:creator>bachman</dc:creator>
      <dc:date>2014-03-10T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8652#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Powershell 3.0 is the way to go... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 19:23:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8652#M1801</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-03-10T19:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8656#M1802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep... agreed.&amp;nbsp; PowerShell 3.0 is the way to go... especially as it is the default version of PoSH on Windows Server 2012 xx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 20:45:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8656#M1802</guid>
      <dc:creator>hill</dc:creator>
      <dc:date>2014-03-10T20:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8665#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following Microsoft directions to install PowerShell 3.0, it wants me to load either .NET Framework 4.0 or 4.5 which includes PowerShell 3.0. Do we care whether .NET is 4.0 or 4.5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 17:58:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8665#M1805</guid>
      <dc:creator>bachman</dc:creator>
      <dc:date>2014-03-14T17:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to run Windows CLI commands from WFA workflow?</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8670#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only reason to go to 4.5 is if you plan on in the future to goto powershell 4.0 which isn't necassary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stick with 4.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's just my opinion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 18:03:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-run-Windows-CLI-commands-from-WFA-workflow/m-p/8670#M1806</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-03-14T18:03:19Z</dc:date>
    </item>
  </channel>
</rss>

