Microsoft Virtualization Discussions

Toolkit 3 installation issue

Willybobs27

I downloaded the toolkit and unzipped to C:\Windows\System32\WindowsPowerShell\v1.0

Then using import-module DataONTAP I get an error:

import-module : Could not load file or assembly

'file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DataONTAP\OntapiPS.dll' or one of its dependencies.

Operation is not supported. (Exception from HRESULT: 0x80131515)

At line:1 char:1

+ import-module DataONTAP

+ ~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Import-Module], FileLoadException

    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

Any ideas what this might be?

1 ACCEPTED SOLUTION

vinith

Hello Willy,  Can you please install the msi version from https://communities.netapp.com/docs/DOC-22259 

Also once you install, set youur powershell execution policy to remotesigned. 

Open your powershell prompt in "Run as Administrator mode" and run the below command 

PS C:\> Set-ExecutionPolicy remotesigned -Force

Then retry importing the module.

View solution in original post

3 REPLIES 3

vinith

Hello Willy,  Can you please install the msi version from https://communities.netapp.com/docs/DOC-22259 

Also once you install, set youur powershell execution policy to remotesigned. 

Open your powershell prompt in "Run as Administrator mode" and run the below command 

PS C:\> Set-ExecutionPolicy remotesigned -Force

Then retry importing the module.

View solution in original post

Willybobs27

Thanks that did the trick

Worked for me too thanks.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public