Microsoft Virtualization Discussions

Failing Connect-NcController Command

TMADOCTHOMAS
850 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
494 Views

Hello,

 

same here.

Did you resolved the problem?

 

Rgds.

TMADOCTHOMAS
472 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.

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

 

Thank you

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?

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