I just installed powershell module in Hyper-V 2008R2, it went through all the process successfully until it went pass the registry importing succesfully, but after that I get an error message. Please see below:
Import-Module : There were errors in loading the format data file:
Microsoft.PowerShell, , C:\Program Files\modules\Hyperv\hyperv.Format.ps1xml : File skipped bec
ause of the following validation exception: File C:\Program Files\modules\Hyperv\hyperv.Format.
ps1xml cannot be loaded. The file C:\Program Files\modules\Hyperv\hyperv.Format.ps1xml is not d
igitally signed. The script will not execute on the system. Please see "get-help about_signing"
for more details...
At line:1 char:14
+ Import-Module <<<< 'C:\Program Files\modules\Hyperv'
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModu
What seems to be the problem and how to resolve this?