Skip to content

Instantly share code, notes, and snippets.

@Pyromaniaxxx
Created December 19, 2015 07:59
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/6d0ddb169596ab6ca5ed to your computer and use it in GitHub Desktop.
Save Pyromaniaxxx/6d0ddb169596ab6ca5ed to your computer and use it in GitHub Desktop.
ISOをマウントしているVMの一覧を取得する
# SCVMM LibraryのISOを FileShareでmountしていると ライブラリ更新時に「iso を更新できません。ファイルは別のプロセスによって使用されています。」
# と表示されるが、実際どのVMがmountしているかわからないので、ISOをmountしているVMの一覧を抽出する
Get-SCVirtualMachine | ? {$_.VirtualDVDDrives.ISOId -ne $null} | SELECT NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment