Hmmm ... that's the easiest way.

I don't think that your environment changes too often or even dynamically regarding DHCP Servers, so this is kind of listing/surveillance script easily done by doing


;build your array here

'List of DHCP Servers :' ? ?
for each $Server in $asServers
shell '%ComSpec% /c xnet list \\' + $Server + ' |find /c "DHCPServer" >nul'
if not @error
$Server ?
endif
next


[Wink]
_________________________