Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The assembly 'C:\Windows\Cluster\FailoverClusters.ObjectModel.dll' was not loaded because no assembly was found.

436 views
Skip to first unread message

patrick....@gmail.com

unread,
Feb 12, 2013, 5:14:41 AM2/12/13
to
Hi,

when I try to execute the following script(extract):

-
$s = new-pssession -computername Computername
enter-pssession $s
Import-Module FailoverClusters

-
I get the Error:

Import-Module : The assembly 'C:\Windows\Cluster\FailoverClusters.ObjectModel.dll' was not loaded because no assembly was found. Please check the assembly name and try again.
At C:\Users\schuadm\Desktop\test.ps1:6 char:14
+ Import-Module <<<< FailoverClusters
+ CategoryInfo : InvalidOperation: (:) [Import-Module], DllNotFoundException
+ FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand

The Session stays open after I get the error. So if I try to import the module again it works just fine...
Is it no possible to open a session and import the modules?

Regards,
Pat
0 new messages