|Sounds like you might benefit from something I wrote a while back for work. Basically this used dsquery (assuming you're in an AD environment) to query a portion of the computer name, pings those computers that are returned by the dsquery search, and shows whether each is online or not. |
This allows me to not only find a computer with only a portion of the name but also see whether it's up or not (in a list format) and go from there. I added it to my system path as pingf.bat and simply call it by typing "pingf comp" where comp is a partial computer name. I've ended up using it on a daily basis:
Ping -w 150 %1
IF %errorlevel% NEQ 0 GOTO LOCATE
Del /f /q status.txt
Del /f /q comps.txt
Echo Computer names similar to your entry:
DSQUERY computer -limit 250 -name *%1* -o rdn >>comps.txt
for /f %%a in (comps.txt) do (
ping %%a -n 1 -w 100 >nul
if !errorlevel! equ 0 (Echo %%a - Online >>status.txt.) else Echo %%a - Offline >>status.txt.
Echo For more results - please try again with a more broad computer name.