There are some good features to this script but what really hurts is the two trips to the server for the Win32_Computersystem class Foreach ($IP in (Get-Content "C:IPList.txt"))
{
$Name = (Get-WMIObject Win32_ComputerSystem -ComputerName $ip).Name… Read the full text.