$temp = Import-Csv C:\Users\Administrator\Desktop\book1.csv
foreach($i in $temp)
{
Remove-VM -Server 192.168.1.3 -DeletePermanently -VM $i.Name -ErrorAction SilentlyContinue -Confirm:$false
}
Advertisement
Open Technology Forum
April 23, 2011
Uncategorized Leave a comment
$temp = Import-Csv C:\Users\Administrator\Desktop\book1.csv
foreach($i in $temp)
{
Remove-VM -Server 192.168.1.3 -DeletePermanently -VM $i.Name -ErrorAction SilentlyContinue -Confirm:$false
}
SocialVibe