# Create a basic snapshot of a Virtual Machine # 20091119 $vmname = read-host "Enter VM Name to take Snapshot of" $snapshotname = read-host "Enter a name for the snapshot" New-Snapshot -VM(Get-VM -Name "$vmname") -Name $snapshotname