Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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])"
- }
- } ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement