patrick....@gmail.com
unread,Feb 12, 2013, 5:14:41 AM2/12/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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