foreach
(
$vm
in
get
-
vm
)
{
foreach
(
$Drive
in
(
get
-
cddrive
$vm
|
where
{
$_
.IsoPath
-ne
$null
}
)
)
{
$IsoSplit
=
$Drive
.IsoPath.split
(
'/'
)
;
write-host
"$($VM.Name)
`t
$($IsoSplit[$IsoSplit.length-1])"
}
}
;