Microsoft Virtualization Discussions

Toolkit 3 installation issue

Willybobs27
4,107 Views

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
4,107 Views

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
4,108 Views

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.

Willybobs27
4,107 Views

Thanks that did the trick

CAPITALISMCZAR
4,107 Views

Worked for me too thanks.

Public