Microsoft Virtualization Discussions

PowerShell Toolkit Won't Upgrade

TMADOCTHOMAS
128 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
TMADOCTHOMAS has accepted the solution

sneppef
39 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
TMADOCTHOMAS has accepted the solution

sneppef
40 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
12 Views

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

Public