qq524061227 发表于 2018-9-3 08:48:25

Installing PowerShell Management Library for windows server 2008-Robin的学习笔记

  最近在摸索一种命令方式备份Hyper-V里的虚拟机,因为平时备份都是手动关闭VM,然后Export,这样浪费很多的时间,于是折腾了下,想用命令实现自动化完成VM的备份。
  查阅了下资料,看到了一个开源的软件能够用此Powershell Management Library里的命令完成大部分的虚拟机管理操作,在这里分享此网站:
  http://pshyperv.codeplex.com/
  但是在Import 此Module时出现如下错误:
  Import-Module : There were errors in loading the format data file:
  Microsoft.PowerShell, , C:\Program Files\modules\Hyperv\hyperv.
  Format.ps1xml : File skipped because 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 digitally 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
页: [1]
查看完整版本: Installing PowerShell Management Library for windows server 2008-Robin的学习笔记