Get-Content 'PATH_TO_YOUR_TXT_FILE' | ForEach-Object { ping $_ }
write "" | Out-File $outfile -append
$vmtoolstatus = Get-WmiObject -class Win32_Product -computername $ComputerName | Where-Object {$_.Name -match "VMWare Tools"} |select Name,version
if ("X$vmtoolstatus" -eq "X")
{
write "VMware Tools **N'EST PAS** présenfound." | Out-File $outfile -append
}
else
{
write "WMware tools presence/version info:" | Out-File $outfile -append
$vmtoolstatus | Out-File $outfile -append
}