PowerShell Management Library for Hyper-V登上CodePlex

微软的James O'Neill把PowerShell Management Library for Hyper-V Beta 0.9放上了CodePlex。该库目前包含66个用来管理Hyper-V虚拟机的函数。

库中包含以下函数:

  • 查找VM:Get-VM, Choose-VM
  • 连接到VM: New-VMConnectSession
  • 查询及操作VM状态:List-VMState, Set-VMState, Convert-VmState, Ping-VM, Shutdown-VM, Start-VM, Stop-VM, Suspend-VM, Get-VMKVP
  • 备份、导出VM和拍摄VM的快照:Backup-vm, Export-VM, Get-VMSnapshot, Choose-VMSnapshot, Apply-VMSnapshot, New-VMSnapshot, Remove-VMSnapshot, Get-VMSnapshotTree
  • 增加和删除VM,配置主板设置:New-VM, Remove-VM, Set-VM, Get-VMCPUCount, Set-VMCPUCount, Get-VMMemory, Set-VMMemory
  • 操作磁盘控制器、磁盘和磁盘映像:Get-VMDiskController, Add-VMSCSIController, Remove-VMSCSIcontroller, Get-VMDrive, Add-VMDRIVE, Remove-VMdrive, Get-VMDisk, Add-VMDISK, Set-VMDisk, List-VMDisk Get-VMFloppyDisk, Add-VMFloppyDisk, Add-VMNewHardDisk
  • 操作网络接口卡:Get-VMNic, List-VMNic, Choose-VMNIC, Add-VMNIC, Remove-VMNIC, Set-VMNICAddress, Set-VMNICConnection, Get-VMNicport, Get-VMnicSwitch, Choose-VMSwitch, New-VMSwitchPort, Get-VMByMACaddress
  • 操作VHD文件:Get-VHDDefaultPath, Get-VHDInfo, New-VHD, Compact-VHD, Mount-VHD, Unmount-VHD

这个库还在Beta阶段,源代码在Microsoft Public License (Ms-PL)协议下提供。InfoQ在6月份已报道过微软虚拟化解决方案Hyper-V的发布情况。

查看英文原文: PowerShell Management Library for Hyper-V Posted on CodePlex

你可能感兴趣的:(PowerShell Management Library for Hyper-V登上CodePlex)