Skip to content

Instantly share code, notes, and snippets.

@Pyromaniaxxx
Created March 4, 2015 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pyromaniaxxx/851f4287c9cf1706216c to your computer and use it in GitHub Desktop.
Save Pyromaniaxxx/851f4287c9cf1706216c to your computer and use it in GitHub Desktop.
SCVMMで管理している全てのホストにいる仮想マシンの一覧作成的なアレ
#参考
Import-Module -Name virtualmachinemanager
$Hostname = "<<HostName>>"
Get-SCVMHost -VMMServer $Hostname |ForEach-Object {$_.VMs }|Select-Object Name,VMHost,Cloud,VMAddition
Get-SCVMHost -VMMServer $Hostname |ForEach-Object {$_.VMs }|Select-Object Name,VMHost,Cloud,VMAddition|OGV
Get-SCVMHost -VMMServer $Hostname |ForEach-Object {$_.VMs }|Select-Object Name,VMHost,Cloud,VMAddition,VMCPath|FT
Get-SCVMHost -VMMServer $Hostname |ForEach-Object {$_.VMs }|Select-Object Name,VMHost,Cloud,VMAddition,VMCPath|OGV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment