Get VM OS From Snapshot

1 year ago
3

Here are a few commands to that you can get the Operating System of a VM with a SnapShot

$vmsnapshot = Get-vm | Get-Snapshot | Select VM, Name
$vmsnapshot | Add-Member -Name Guest -MemberType NoteProperty -Value ""
for ($q=0; $q -lt $vmsnapshot.Count; $q++) { $vmsnapshot[$q].Guest = Get-VM -Name $vmsnapshot[$q].vm.name | Select -ExpandProperty GuestID }

Loading comments...