Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: How To Create VMs in vCenter From Template Using Powershell

$
0
0

The Remove-VM cmdlet doesn't have a Name parameter.

Try

1..600 | Foreach {
    $i="{0:000}" -f $_
    Write-Host "Deleting VM TEST$i"
    Remove-VM -VM TEST$i -confirm:$false -DeletePermanently
}

Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>