[code]
$vms = Import-Csv C:\cvs\vms.cvs
Foreach ($vm in $vms) {
Get-VM -name $vm | Shutdown-VMGuest | Set-VM -MemoryMB "4096" | -MemReservationMB "4096" –Confirm:$False | Start-VM
}
CVS input
NAME |
__PBTPW732NP_Temp |
PBTPW732NP_Temp |
BTPXDWIN7O10 |
clone-example |
PBTPCTL01 |
PBTPDEVW764001 |
PBTPDEVW764002 |
PBTPDEVW764003 |
PBTPDEVW764004 |
PBTPDEVW764005 |
No comments:
Post a Comment