$vmm=Get-VMHost jockey-host01 | Get-VM | Where-Object {$_.PowerState -eq "PoweredOn"} |select name
foreach($nvm in $vmm)
{
Move-Vm -VM $nvm.name -Destination(Get-Folder -Name PowerON-VMS)
}
foreach($nvm in $vmm)
{
Move-Vm -VM $nvm.name -Destination(Get-Folder -Name PowerON-VMS)
}
OstanmosFgeo-tsu Marc King click here
ReplyDeleterespwaleka