#连接到SCVMM
Import-Module virtualmachinemanager
Get-VMMServer (gwmi win32_computersystem).Name |Out-Null

#查询Hyper-V宿主总数
$hvs = Get-SCVmhost

#查询虚拟机总数
$vms = Get-SCVirtualMachine

 

相关文章:

  • 2022-02-22
  • 2021-05-20
  • 2021-06-06
  • 2021-05-21
  • 2021-08-07
  • 2021-07-19
  • 2021-06-29
  • 2021-04-16
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2022-01-06
  • 2021-10-08
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案