ahem, i don't see where the problem is...

$portfree is supposed to return whetera port is free ($true) or not ($false). In the case you describe on WinXP, it works properly (ie: returns $false when the port is in use). Other than that, i think that the value returned by $portfree may depend on several factors which may explain why it returns $true on Win98 while it SHOULDN'T! blush