Hmm.. All the file placement and install stuff are OK (and toolkit 1.2 are working fine if I replace the Modules\DataONTAP folder)
The system is a newly installed 2008 R2 server with all updates applied.
When I tried again today I see that the first error message I got (slipped my eyes) is actually another one, and when I try once more I get the one reported yesterday:
PS C:\> Import-Module DataONTAP
Import-Module : Could not load file or assembly 'System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, Public
KeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
At line:1 char:14
+ Import-Module <<<< DataONTAP
+ CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand
PS C:\> Import-Module DataONTAP
Import-Module : The following error occurred while loading the extended type data file:
Microsoft.PowerShell, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DataONTAP\DataONTAP.Type.ps1xml : File skipped
because it was already present from "Microsoft.PowerShell".
At line:1 char:14
+ Import-Module <<<< DataONTAP
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand
If I move the DataONTAP folder from "C:\Windows\system32\WindowsPowerShell\v1.0\Modules\" to "C:\Users\<username>\Documents\WindowsPowerShell\Modules"
I get the same result.
I also tried to set the ExecutionPolicy to Unrestricted (was RemoteSigned), but no difference.