ONTAP Discussions

Get-NcHostDisk : Could not load file or assembly 'System.Security.Principal.Windows'

TimothyB
382 Views

Hello all - I'm starting out scripting on some Windows Servers that have connected LUNs, and when trying to use Get-NcHostDisk, I get this error:

Get-NcHostDisk : 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.

 

Is there a .NET Framework (or some other) requirement that I'm missing? I can't find any dependency info on what it may be looking for. This is running on Windows Server 2022, and I've tested with the two latest versions of the netapp.ONTAP module (9.16.1.2501 and 9.17.1.2509).

Commands such as Get-NcVol work fine so I know I'm connected.

1 REPLY 1

AnubhavRawal
46 Views

Please confirm your PowerShell version so I can provide more targeted guidance.

 

Cluster-side cmdlets such as Get-NcVol communicate directly with the ONTAP API over HTTPS and do not rely on local OS assemblies.

 

In contrast, Get-NcHostDisk queries local Windows disk information and merges it with ONTAP LUN mapping data. This process requires certain .NET assemblies to be present and, in some cases, the NetApp Windows Host Utilities to be installed.

Public