Microsoft Virtualization Discussions

Failing Connect-NcController Command

TMADOCTHOMAS
994 Views

Hello,

 

I am setting up a new 2022 Windows server to run PowerShell scripts on NetApp. I installed the latest version of the PowerShell Toolkit [9.18.1.2601] and am running a few basic commands to test. Running Import-Module NetApp.ONTAP seems to work fine. However, when I run Connect-NcController, I get the following error. This is with and without the -Ontapi switch. Any suggestions?

---------------------------------------------------------------------
Connect-NcController : Could not load file or assembly 'System.Security.Principal.Windows, Version=4.1.1.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file
specified.
At line:1 char:1
+ Connect-NcController -Name <cluster_name> -OnTapi
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-NcController], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,DataONTAP.C.PowerShell.SDK.ConnectNcController

5 REPLIES 5

Gino33
638 Views

Hello,

 

same here.

Did you resolved the problem?

 

Rgds.

TMADOCTHOMAS
616 Views

I hate to say it, but the solution was to go back to version 9.16.1.2501. It works without issue. Must be some weird bug or issue in version 9.18.1 that isn't resolved yet.

ukauf
326 Views

Thank you Thomas, where did you find 9.16.1? On NOW only 9.18.1 seems available.

 

Thank you

TMADOCTHOMAS
323 Views

I actually just still had a copy of 9.16.1 from when I had installed it on another box. I don't know if NetApp Support can provide a copy of 9.16.1 or not?

ukauf
313 Views

found out , you can download any version from the Powershell gallery:

https://www.powershellgallery.com/packages/NetApp.ONTAP/9.16.1.2501

Download the Offline nupkg file and the install it using nuget.exe:
https://www.nuget.org/downloads

 

 

Public