<?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: NetApp PowerShell Toolkit 4.5P1 released! in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138923#M5664</link>
    <description>&lt;P&gt;\HKEY_LOCAL_MACHINE\SOFTWARE\SimonTatham (Right click, permissions)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All application packages: Full Control&lt;BR /&gt;Users (of the&amp;nbsp;local machine your on): Full Control&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tested on Server 2012 and Server 2016: works.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 17:04:38 GMT</pubDate>
    <dc:creator>NHANAS_RS</dc:creator>
    <dc:date>2018-03-16T17:04:38Z</dc:date>
    <item>
      <title>NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138566#M5645</link>
      <description>&lt;P&gt;Dear PowerShell community,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;We are glad to announce the release of&amp;nbsp; &lt;A title="NetApp PowerShell Toolkit version 4.5P1" href="https://mysupport.netapp.com/tools/info/ECMLP2310788I.html?productID=61926&amp;amp;pcfContentID=ECMLP2310788" target="_blank"&gt;NetApp PowerShell Toolkit version 4.5P1&lt;/A&gt; This unified release has enhancements for Data ONTAP module. In this release we have made fixes for following two DataONTAP PowerShell toolkit cmdlets.&lt;BR /&gt;&lt;BR /&gt;1) Invoke-NcSsh&amp;nbsp;&amp;nbsp; 2) Invoke-NaSsh&lt;BR /&gt;&lt;BR /&gt;Prerequisites:- The user needs to install Putty of version "putty-64bit-0.70-installer" on the system from where this cmdlet is being executed.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ONTAP PowerShell Module:&lt;/STRONG&gt;&lt;BR /&gt;The latest release adds upto&amp;nbsp;2170 cmdlets and provides maximum API coverage for ONTAP 9.3 and is backward compatible with previous ONTAP releases.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SANtricity PowerShell Toolkit&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The SANtricity PowerShell module supports more than 300 cmdlets, enabling the storage administration of NetApp E-Series storage systems and EF-Series all-flash arrays.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Download the PowerShell Toolkit 4.5P1 from&lt;SPAN&gt; &lt;A title="here" href="https://mysupport.netapp.com/tools/info/ECMLP2310788I.html?productID=61926&amp;amp;pcfContentID=ECMLP2310788" target="_blank"&gt;here&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;NetApp PowerShell Toolkit Team&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 11:03:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138566#M5645</guid>
      <dc:creator>Kartik_Gupta</dc:creator>
      <dc:date>2018-03-02T11:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138569#M5648</link>
      <description>&lt;P&gt;Just doing some first tests with the new Invoke-NaSsh&amp;nbsp;in PSTK 4.5P1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First impressions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- It need external PuTTY installed&lt;/P&gt;
&lt;P&gt;- It seems to find/access PuTTY through windows registry, which fails when&amp;nbsp;my PS session&amp;nbsp;has no&amp;nbsp;elevated priviledge. I get this error when trying it as a normal user:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\Users\mark&amp;gt; Invoke-NaSsh -Name ucnlabfiler07 -Command date -Credential $(Get-Credential root)&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;Invoke-NaSsh : Der angeforderte Registrierungszugriff ist unzulässig.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;In Zeile:1 Zeichen:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;+ Invoke-NaSsh -Name ucnlabfiler07 -Command date -Credential $(Get-Cred ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [Invoke-NaSsh], SecurityException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : System.Security.SecurityException,DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNaSsh&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;&lt;FONT color="#000000"&gt;(this is on a German Windows 10 box, and means&amp;nbsp;something like &amp;nbsp;´no permission&amp;nbsp;to access the registry´ .)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;- the cmdlet works when Powershell is started "As Administrator"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;- it also actually works with ONTAP 9.3 and 8.2.5 7mode now (that's what I've been missing)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;- However it's SLOW. Running a single ssh command against a cDOT Cluster takes&amp;nbsp;8 (!) seconds for me:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\WINDOWS\system32&amp;gt; Measure-Command -Expression {Invoke-NaSsh -Name 10.230.41.76 -Command date -Credential $cred}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Days&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;BR /&gt;Hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;BR /&gt;Minutes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;BR /&gt;Seconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 8&lt;BR /&gt;Milliseconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 46&lt;BR /&gt;Ticks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 80460210&lt;BR /&gt;TotalDays&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 9,31252430555556E-05&lt;BR /&gt;TotalHours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0,00223500583333333&lt;BR /&gt;TotalMinutes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0,13410035&lt;BR /&gt;&lt;STRONG&gt;TotalSeconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 8,046021&lt;/STRONG&gt;&lt;BR /&gt;TotalMilliseconds : 8046,021&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;So at first glance, thanks for the fix, but I think for now I'll stick with the Invoke-NcSystemApi workaround, which is MUCH faster and has no external dependencies.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Mark&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 13:39:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138569#M5648</guid>
      <dc:creator>mark_schuren</dc:creator>
      <dc:date>2018-03-02T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138772#M5662</link>
      <description>&lt;P&gt;Hello, did you find any solution to this? Have very same problem and it is quite annoying.&lt;/P&gt;
&lt;P&gt;Have to execute powershell as Administrator, than it works, otherwise it gives this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; Invoke-NcSsh system health status show&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Invoke-NcSsh : Requested registry access is not allowed.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;At line:1 char:1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ Invoke-NcSsh system health status show&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : NotSpecified: (:) [Invoke-NcSsh], SecurityException&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : System.Security.SecurityException,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNcSsh&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Any help appreciated.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 09:18:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138772#M5662</guid>
      <dc:creator>brnosanse</dc:creator>
      <dc:date>2018-03-12T09:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138858#M5663</link>
      <description>&lt;P&gt;Same issues, access error - requires "Run As Administrator" (Server 2008\2012)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 13:00:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138858#M5663</guid>
      <dc:creator>NHANAS_RS</dc:creator>
      <dc:date>2018-03-14T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138923#M5664</link>
      <description>&lt;P&gt;\HKEY_LOCAL_MACHINE\SOFTWARE\SimonTatham (Right click, permissions)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All application packages: Full Control&lt;BR /&gt;Users (of the&amp;nbsp;local machine your on): Full Control&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tested on Server 2012 and Server 2016: works.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 17:04:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/138923#M5664</guid>
      <dc:creator>NHANAS_RS</dc:creator>
      <dc:date>2018-03-16T17:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139480#M5713</link>
      <description>&lt;P&gt;The module version (command module) is still 4.3.0 while the installed msi is 4.5P1.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 12:34:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139480#M5713</guid>
      <dc:creator>dennisvisser</dc:creator>
      <dc:date>2018-04-10T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139654#M5721</link>
      <description>&lt;P&gt;I get the "&lt;SPAN&gt;Invoke-NcSsh : Requested registry access is not allowed." error on systems running higher than ONTAP 9.1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've gotten around it using the 'Run as Administrator' and/or the Registry changes noted in the flag... However, the performance is significantly slower than before... you can see "plink" spawning before you finally get your results back.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this the expected behavior going forward?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--Craig&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:56:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139654#M5721</guid>
      <dc:creator>csalitros</dc:creator>
      <dc:date>2018-04-17T19:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139911#M5731</link>
      <description>&lt;P&gt;can you tell me what is the reason for this&amp;nbsp; ?&amp;nbsp; what has to do with Putty ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Lucida Console" size="1" color="#f5f5f5"&gt;PS C:\Windows\system32&amp;gt; Get-Module&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ModuleType Version Name ExportedCommands&lt;/P&gt;
&lt;P&gt;---------- ------- ---- ----------------&lt;/P&gt;
&lt;P&gt;Script 1.0.0.0 ISE {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}&lt;/P&gt;
&lt;P&gt;Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}&lt;/P&gt;
&lt;P&gt;Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt; import-module dataontap&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt; Connect-NcController 192.168.163.135&lt;/P&gt;
&lt;P&gt;Name Address Vserver Version&lt;/P&gt;
&lt;P&gt;---- ------- ------- -------&lt;/P&gt;
&lt;P&gt;192.168.163.135 192.168.163.135 NetApp Release 9.3RC1: Wed Nov 01 07:34:37 UTC 2017&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt; Invoke-NcSsh version&lt;/P&gt;
&lt;P&gt;Invoke-NcSsh : Please install putty (version putty-64bit-0.70) on your machine to use this cmdlet.&lt;/P&gt;
&lt;P&gt;At line:1 char:1&lt;/P&gt;
&lt;P&gt;+ Invoke-NcSsh version&lt;/P&gt;
&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;+ CategoryInfo : NotInstalled: (192.168.163.135:NcController) [Invoke-NcSsh], ArgumentException&lt;/P&gt;
&lt;P&gt;+ FullyQualifiedErrorId : Please install putty (version putty-64bit-0.70) on your machine to use this cmdlet.,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNcSsh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 15:17:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139911#M5731</guid>
      <dc:creator>himal123</dc:creator>
      <dc:date>2018-04-27T15:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139913#M5732</link>
      <description>&lt;P&gt;It worked after installing putty 64 bit,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But,&amp;nbsp; while executing that version command for one host,&amp;nbsp; the black-screen cmd command promt window opened and - may be it ran from there and closed and I got output,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now,&amp;nbsp;what if ,&amp;nbsp;if I have 50 controllers - clusters,&amp;nbsp; which I run in for each host loop,&amp;nbsp; does it needs to open that black cmd window 50 times or it will remain open till all those 50s are executed&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Lucida Console" size="1" color="#f5f5f5"&gt;PS C:\Windows\system32&amp;gt; Get-Module&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ModuleType Version Name ExportedCommands&lt;/P&gt;
&lt;P&gt;---------- ------- ---- ----------------&lt;/P&gt;
&lt;P&gt;Script 1.0.0.0 ISE {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}&lt;/P&gt;
&lt;P&gt;Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}&lt;/P&gt;
&lt;P&gt;Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt; import-module dataontap&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt; Connect-NcController 192.168.163.135&lt;/P&gt;
&lt;P&gt;Name Address Vserver Version&lt;/P&gt;
&lt;P&gt;---- ------- ------- -------&lt;/P&gt;
&lt;P&gt;192.168.163.135 192.168.163.135 NetApp Release 9.3RC1: Wed Nov 01 07:34:37 UTC 2017&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt; Invoke-NcSsh version&lt;/P&gt;
&lt;P&gt;NetApp Release 9.3RC1: Wed Nov 01 07:34:37 UTC 2017&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;PS C:\Windows\system32&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 15:32:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139913#M5732</guid>
      <dc:creator>himal123</dc:creator>
      <dc:date>2018-04-27T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139950#M5733</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/30045"&gt;@himal123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The window that opens is Plink running to connect to the ONTAP system and execute the command.&amp;nbsp; It will disappear when the command is finished.&amp;nbsp; Unless you're executing multiple Invoke-NcSsh commands in parallel, then there will only be one at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing to note, the new Invoke-NcSsh is much slower than previously.&amp;nbsp; You can regain much of that speed by manually executing Plink in your PowerShell script (this also doesn't require the PowerShell script to be elevated), however doing so means that you need to have the credentials in clear text which is not ideal for many.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:28:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/139950#M5733</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-04-30T13:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140021#M5735</link>
      <description>&lt;P&gt;When it comes to execute ssh command within powershell I'd rather prefer using the posh-ssh module from the powershell galery (&lt;A href="https://www.powershellgallery.com/packages/Posh-SSH/" target="_blank"&gt;https://www.powershellgallery.com/packages/Posh-SSH/&lt;/A&gt;) than having to invoke an external executable like plink. You can also install that module directly within powershell using the install-module posh-ssh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the mean time this module allow you to stream commands which is nice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using it that way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT face="courier new,courier"&gt;if (Get-Module -ListAvailable -Name posh-ssh)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (!(Get-Module -Name posh-ssh))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;import-module posh-ssh&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Get-WFALogger -Info -message $("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;gt;] posh-ssh Module loaded successfully..")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;} else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Get-WFALogger -Info -message $("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;gt;] posh-ssh Module already loaded..")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;} else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Throw "Posh-ssh module not found. Please install the posh-ssh module"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="padding-left: 60px;"&gt;&lt;FONT face="courier new,courier"&gt;$response=@()&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="padding-left: 30px;"&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $session=New-SSHSession -ComputerName $MgmtIP -Credential $Credential -KeepAliveInterval 60 -AcceptKey -Force&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$stream = $session.Session.CreateShellStream("",0,0,0,0,10000)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sleep 2&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="padding-left: 60px;"&gt;&lt;FONT face="courier new,courier"&gt;$stream.Write("$Command`r")&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="padding-left: 60px;"&gt;&lt;FONT face="courier new,courier"&gt;$response+=$stream.Read()&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 12:15:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140021#M5735</guid>
      <dc:creator>M_Ferber</dc:creator>
      <dc:date>2018-05-04T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140208#M5739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am getting that "established connection was aborted by software in your host machine" too.&amp;nbsp; Interestingly enough, I ONLY GET THAT ERROR when trying to run invoke-ncssh within a WFA workflow.&amp;nbsp; Using the same command(s) via powershell manually, it works ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've confirmed that the WFA server has the registry settings for SimonTatham changed, .NET 4.5.2+, WindowsPowerShell 3.0+, Powershell Toolkit 4.5P1, and Putty 0.70.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Donna&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 19:27:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140208#M5739</guid>
      <dc:creator>DonnaLou</dc:creator>
      <dc:date>2018-05-14T19:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140213#M5741</link>
      <description>&lt;P&gt;Hi Donna,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use Invoke-NcSystemApi as an alternative to Invoke-NcSsh to ensure you connect via HTTPS instead of SSH. Here is a WFA code example. Modify the command to meet your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Param(
   [Parameter(Mandatory=$True, HelpMessage="Source Cluster")]
   [String]$SourceCluster,
   [Parameter(Mandatory=$True, HelpMessage="Destination Cluster")]
   [String]$DestinationCluster,
   [Parameter(Mandatory=$True, HelpMessage="Source Vserver")]
   [String]$SourceVserver,
   [Parameter(Mandatory=$True, HelpMessage="Destination Vserver")]
   [String]$DestinationVserver
) 
#'------------------------------------------------------------------------------
#'Connect to the cluster.
#'------------------------------------------------------------------------------
Connect-WfaCluster $SourceCluster
[String]$command = "Get-NcSnapmirror -DestinationCluster $DestinationCluster -SourceVserver $SourceVserver -DestinationVserver $DestinationVserver -ErrorAction Stop"
Try{
   $vsm =  Invoke-Expression -Command $command -ErrorAction Stop
   Get-WFALogger -Info -Message "Executed Command`: $command"
   Get-WFALogger -Info -Message "Enumerated SnapMirror Relationships for vserver ""$DestinationVserver"" on cluster ""$DestinationCluster"""
}Catch{
   Get-WFALogger -Error -Message $("Failed Executing Command`: $command. Error " + $_.Exception.Message)
   Throw "Failed enumerating SnapMirror Relationships for vserver ""$DestinationVserver"" on cluster ""$DestinationCluster"""
}
If($vsm -and $vsm.Status -eq "transferring"){
   Throw "Cannot create relationship as there is some volumes currently transferring"
}
#'------------------------------------------------------------------------------
#'Create SnapMirror and preserve identity for onbox SVMDR.
#'------------------------------------------------------------------------------
$command = @("snapmirror", "create", "-source-path", "$DestinationVserver`:", "-destination-path", "$SourceVserver`:", "-identity-preserve true")
Try{
   $api = $("&amp;lt;system-cli&amp;gt;&amp;lt;args&amp;gt;&amp;lt;arg&amp;gt;"+($command -join "&amp;lt;/arg&amp;gt;&amp;lt;arg&amp;gt;")+"&amp;lt;/arg&amp;gt;&amp;lt;/args&amp;gt;&amp;lt;/system-cli&amp;gt;")
   Get-WFALogger -Info -Message "Command: $api"
   $output = Invoke-NcSystemApi -Request $api -ErrorAction Stop
   Get-WFALogger -Info -Message  $("Command output: '" + $res.results."cli-output" + "'. Result value: " + $res.results."cli-result-value")
   If($output.results."cli-result-value" -ne 1){
      Throw $("snapmirror create failed: "+ $output.results."cli-output")
   }
}Catch{
   Get-WFALogger -Error -Message $("Failed Executing Command`: $command. Error " + $_.Exception.Message)
   Throw "Failed invoking the snapmirror create command for destinationPath ""$DestinationVserver`:"""
}
#'------------------------------------------------------------------------------ 
&lt;/PRE&gt;
&lt;P&gt;Just an example but you get the idea. Hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 06:21:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140213#M5741</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-05-15T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140283#M5745</link>
      <description>&lt;P&gt;Thank you Matt!&amp;nbsp; I really appreciate the code example!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:49:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140283#M5745</guid>
      <dc:creator>DonnaLou</dc:creator>
      <dc:date>2018-05-16T15:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140291#M5747</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;
&lt;P&gt;I can get the sample code using ncsystem-api&amp;nbsp; to work from powershell.&amp;nbsp; From WFA, I get the message "data at the root level is invalid".&amp;nbsp; Any ideas?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really appreciate your help,&lt;/P&gt;
&lt;P&gt;Donna&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 20:45:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140291#M5747</guid>
      <dc:creator>DonnaLou</dc:creator>
      <dc:date>2018-05-16T20:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140338#M5752</link>
      <description>&lt;P&gt;Hi Donna,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than troubleshoot the issue with the previous example code (which i hadn't tested), here is another code example using Invoke-NcSystemApi as an alternative to using Invoke-NcSsh&lt;/P&gt;
&lt;P&gt;The code below enables you to show or modify the ontapi limits for a cluster. EG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;cluster1::*&amp;gt; set diag;system ontapi limits show

Monitor Mode   Max Run   Max Reply
                Time        Size
------------- ---------- ---------
silent         120000     20&lt;BR /&gt;&lt;BR /&gt;cluster1::*&amp;gt; set diag;system ontapi limits modify -max-reply-size 50&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;If you wanted to automate the above process (WITHOUT relying on "Invoke-NcSsh") then the following WFA command code enables you to do that using "Invoke-NcSystemApi"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Param(
   [Parameter(Mandatory=$True, HelpMessage="The cluster name or IP Address")]
   [String]$Cluster,
   [Parameter(Mandatory=$False, HelpMessage="The ontapi monitor mode. Valid values are 'off', 'silent' or 'log'")]
   [ValidateSet("off","silent","log","")]
   [String]$MonitorMode,
   [Parameter(Mandatory=$False, HelpMessage="The maximum ontapi runtime")]
   [ValidateRange(0,1000000)]
   [Int]$MaxRunTime,
   [Parameter(Mandatory=$False, HelpMessage="The maximum ontapi reply size")]
   [ValidateRange(0,1000)]
   [Int]$MaxReplySize
) 
#'------------------------------------------------------------------------------
Function Invoke-OntapiLimits{
   Param(
      [Parameter(Mandatory=$True, HelpMessage="The cluster name or IP Address")]
      [String]$Cluster,
      [Parameter(Mandatory=$True, HelpMessage="The CLI command")]
      [Array]$Command,
      [Parameter(Mandatory=$True, HelpMessage="Specifies if the ontapi limits are added as WFA return paramaters")]
      [Bool]$AddReturnParamaters
   )
   Try{
      $api = $("&amp;lt;system-cli&amp;gt;&amp;lt;args&amp;gt;&amp;lt;arg&amp;gt;" + ($command -join "&amp;lt;/arg&amp;gt;&amp;lt;arg&amp;gt;") + "&amp;lt;/arg&amp;gt;&amp;lt;/args&amp;gt;&amp;lt;/system-cli&amp;gt;")
      Get-WFALogger -Info -Message $("Executed Command`: " + $([String]::Join(" ", $command)))
      $output = Invoke-NcSystemApi -Request $api -ErrorAction Stop
&amp;nbsp;&amp;nbsp;&amp;nbsp;   #'------------------------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;   #'Format the command output if the command result was sucessful.
&amp;nbsp;&amp;nbsp;&amp;nbsp;   #'------------------------------------------------------------------------
      If($output.results."cli-result-value" -eq 1){
       &amp;nbsp;&amp;nbsp;[Array]$lines    = $output.results."cli-output".Trim().Split("`n")
&amp;nbsp;&amp;nbsp;       [String]$result  = $lines[$lines.GetUpperBound(0)]
         [String]$result  = $($result -Replace("\s+", " ")).Trim();
         [Array]$elements = $result.Split(" ")
         If($elements.Count -ne 3){
            Throw "Invalid command output"
         }Else{
            [String]$ontapiMonitorMode = $elements[0]
            [Int]$ontapiMaxRunTime     = $elements[1]
            [Int]$ontapiMaxReplySize   = $elements[2]
         } 
         Get-WFALogger -Info -Message "ontapi monitor-mode`: $ontapiMonitorMode"
         Get-WFALogger -Info -Message "ontapi max-run-time`: $ontapiMaxRunTime"
         Get-WFALogger -Info -Message "ontapi max-reply-size`: $ontapiMaxReplySize"
      }
   }Catch{
&amp;nbsp;&amp;nbsp;&amp;nbsp;   #'------------------------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;   #'Format the command output if the command result was unsucessful.
&amp;nbsp;&amp;nbsp;&amp;nbsp;   #'------------------------------------------------------------------------
      If($output.results."cli-result-value" -ne 1){
       &amp;nbsp;&amp;nbsp;[Array]$lines    = $output.results."cli-output".Trim().Split("`n")
&amp;nbsp;&amp;nbsp;       [String]$result  = $lines[$lines.GetUpperBound(0)]
         [String]$result  = $($result -Replace("\s+", " ")).Trim();
         [Array]$elements = $result.Split(" ")
         Get-WFALogger -Error -Message  "Command error output`:"
         ForEach($element In $elements){
            Get-WFALogger -Error -Message $element
         }
         Get-WFALogger -Error -Message $("Failed Executing Command`: " + $([String]::Join(" ", $command)))
         Return $False;
      }
   }
   #'---------------------------------------------------------------------------
   #'Set the ontapi limits as return parameters if required.
   #'---------------------------------------------------------------------------
   If($AddReturnParamaters){
      If($ontapiMonitorMode){
         Add-WfaWorkflowParameter -Name "monitor_mode" -Value $ontapiMonitorMode -AddAsReturnParameter $True
         Get-WFALogger -Info -Message "Added value for WFA return parameter name ""monitor_mode"" as ""$ontapiMonitorMode"""
      }
      If($ontapiMaxRunTime){
         Add-WfaWorkflowParameter -Name "max_run_time" -Value $ontapiMaxRunTime -AddAsReturnParameter $True
         Get-WFALogger -Info -Message "Added value for WFA return parameter name ""max_run_time"" as ""$ontapiMaxRunTime"""
      }
      If($ontapiMaxReplySize){
         Add-WfaWorkflowParameter -Name "max_reply_size" -Value $ontapiMaxReplySize -AddAsReturnParameter $True
         Get-WFALogger -Info -Message "Added value for WFA return parameter name ""max_reply_size"" as ""$ontapiMaxReplySize"""
      }
   }
   Return $True;
}#End Function
#'------------------------------------------------------------------------------
#'Validate input paramaters to determine if the command should modify or enumerate the ontapi limits.
#'------------------------------------------------------------------------------
[Bool]$modify = $False
If((-Not([String]::IsNullOrEmpty($MonitorMode))) -Or ($MaxRunTime -ne 0) -Or ($MaxReplySize -ne 0)){
   [Bool]$modify = $True
}
#'------------------------------------------------------------------------------
#'Connect to the cluster.
#'------------------------------------------------------------------------------
Connect-WfaCluster $Cluster
#'------------------------------------------------------------------------------
#'Modify the ontapi limits and add the results as return parameters.
#'------------------------------------------------------------------------------
If($modify){
   [Array]$command = @("set diag;system", "ontapi", "limits", "modify")
   If($MonitorMode){
      [Array]$command += @("-monitor-mode", $MonitorMode)
   }
   If($MaxRunTime){
      [Array]$command += @("-max-run-time", $MaxRunTime)
   }
   If($MaxReplySize){
      [Array]$command += @("-max-reply-size", $MaxReplySize)
   }
   [Bool]$result = Invoke-OntapiLimits -Cluster $Cluster -Command $command -AddReturnParamaters $False
   #'---------------------------------------------------------------------------
   #'Enumerate the ontapi limits to ensure they were modified and add them as return parameters.
   #'---------------------------------------------------------------------------
   If($result){
      [Array]$command = @("set diag;system", "ontapi", "limits", "show")
      [Bool]$result   = Invoke-OntapiLimits -Cluster $Cluster -Command $command -AddReturnParamaters $True
      If((-Not($result))){
         Throw "Failed enumerating ontap limites for cluster ""$Cluster"""  
      }
   }Else{
      Throw "Failed modifying ontapi limits for cluster ""$Cluster"""
   }
}Else{
   #'---------------------------------------------------------------------------
   #'Enumerate the ontapi limits and add them as return parameters.
   #'---------------------------------------------------------------------------
   [Array]$command = @("set diag;system", "ontapi", "limits", "show")
   [Bool]$result   = Invoke-OntapiLimits -Cluster $Cluster -Command $command -AddReturnParamaters $True
   If((-Not($result))){
      Throw "Failed enumerating ontap limites for cluster ""$Cluster"""  
   }
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;
&lt;P&gt;If you are not using WFA and just want a native powershell example then replace:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;"Get-WFALogger -Info -Message" with "Write-Host"&lt;/LI&gt;
&lt;LI&gt;"Get-WFALogger -Error -Message" with "Write-Warning -Message"&lt;/LI&gt;
&lt;LI&gt;Comment out "#Add-WfaWorkflowParameter"&lt;/LI&gt;
&lt;LI&gt;"Connect-WfaCluster $Cluster" with "Connect-NcController -Name $Cluster -HTTPS -Credential $(Get-Credential -Credential admin)"&lt;/LI&gt;
&lt;LI&gt;Add "Import-Module DataONTAP" to your script&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Here is an example output from WFA:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/8288iD43AB7F9E520BC00/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="wfa.png" title="wfa.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://community.netapp.com/t5/image/serverpage/image-id/8289i87127DE475161397/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="return.png" title="return.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that's a more useful example that you should be able to test without issue and use the code as the basis for modifying it to meet your requirements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 02:23:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140338#M5752</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-05-18T02:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140373#M5753</link>
      <description>&lt;P&gt;Thank you Matt!&amp;nbsp; I REALLY appreciate your help!&amp;nbsp; I will try this on Monday &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 20:07:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140373#M5753</guid>
      <dc:creator>DonnaLou</dc:creator>
      <dc:date>2018-05-18T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140384#M5754</link>
      <description>&lt;P&gt;Is Powershell Core compatibility anywhere on the development roadmap?&lt;/P&gt;</description>
      <pubDate>Sun, 20 May 2018 00:12:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140384#M5754</guid>
      <dc:creator>twitchyarby</dc:creator>
      <dc:date>2018-05-20T00:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140393#M5755</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/41971"&gt;@twitchyarby&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If having the PSTK work with PowerShell Core is something you're interested in, please reach out to me directly (my communities username at netapp.com) so that we can track the request.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Sun, 20 May 2018 17:47:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140393#M5755</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-20T17:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp PowerShell Toolkit 4.5P1 released!</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140779#M5796</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you elaborate on&amp;nbsp;"Prerequisites:- The user needs to install Putty of version "putty-64bit-0.70-installer" on the system from where this cmdlet is being executed."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming a default install path for the module "C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules\DataONTAP" where would I need to point my putty-64bit-0.70-installer.msi towards in order for the invoke-ncssh command to actually be able to use it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am receiving the following error after attempting to install putty in both default location as well as under the above default module location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Lucida Console" size="1" color="#ff0000"&gt;Invoke-NcSsh : The system cannot find the file specified&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At line:1 char:1&lt;/P&gt;
&lt;P&gt;+ Invoke-NcSsh "set adv -c off; statistics show-periodic -iterations 1"&lt;/P&gt;
&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;+ CategoryInfo : NotSpecified: (:) [Invoke-NcSsh], Win32Exception&lt;/P&gt;
&lt;P&gt;+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNcSsh&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 17:22:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-5P1-released/m-p/140779#M5796</guid>
      <dc:creator>DevoidB</dc:creator>
      <dc:date>2018-06-07T17:22:51Z</dc:date>
    </item>
  </channel>
</rss>

