Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
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?
Solved! See The Solution
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.
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.
Thanks that did the trick
Worked for me too thanks.