NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

PowerShell Toolkit Won't Upgrade

TMADOCTHOMAS
3,374 Views

I just upgraded the PowerShell Toolkit from 9.15.1.2407 to 9.16.1.2410. As it seems to happen with nearly every upgrade, it isn't working.

 

First, what happened to install.ps1? That made installations super easy and now it's gone.

 

Second, if I understand correctly, we should unzip the NetApp.OnTAP download, then unzip the underlying NetApp_OnTAP zip file, and finally copy the NetApp.OnTAP folder to the appropriate path, in our case "C:\Program Files (x86)\Netapp\NetApp PowerShell Toolkit\Modules" (that's where the existing folder is located).

 

I tried copying on top of the existing folder and replacing files, and I tried deleting the original folder and replacing it with the whole new folder. In both cases, when I run Import-Module NetApp.ONTAP I get the following. Anyone know the cause? The file it lists (OntapiPS.dll) is in the location it lists.

------------------------------------------------------------

Import-Module : Could not load file or assembly 'file:///C:\Program Files (x86)\Netapp\NetApp PowerShell
Toolkit\Modules\NetApp.ONTAP\OntapiPS.dll' or one of its dependencies. Operation is not supported. (Exception from
HRESULT: 0x80131515)
At line:1 char:1
+ Import-Module NetApp.ONTAP
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

--------------------------------------------------------------

1 ACCEPTED SOLUTION

sneppef
3,285 Views

Hi, I had the same thing, but I solved it by unblocking the downloaded zip file before unpacking and copying it: 

unblock-powershell-zipfile.png

Best regards,

Filip

View solution in original post

2 REPLIES 2

sneppef
3,286 Views

Hi, I had the same thing, but I solved it by unblocking the downloaded zip file before unpacking and copying it: 

unblock-powershell-zipfile.png

Best regards,

Filip

TMADOCTHOMAS
3,258 Views

Thanks @sneppef , that one little detail resolved the issue!

Public