I used the example by UEZ 2011 to resolve hostname using IP. It works great, but I just notice that if it's not a computer; I get the error: Line 65 (File Location):   $colItems = $objWMIService.ExecQuery("SELECT SystemName FROM Win32_NetworkAdapter WHERE NetConnectionStatus=2", "WQL", 0x30)   Error: Missing right bracket ')' in expression.   I don't think I missed a bracket. Here's the script: Func WMI_GetHostName($host) ;Formula to resolve hostname;     Local $HostNameWMI, $colItems,