JSI Tip 10612. How can I rapidly display all the computer names in my domain that do not respond?

Using Available.bat, I have scripted Not_Available.bat to report all the NetBIOS computer names in the domain you are logged onto that do not respond.

The syntax for using Not_Available.bat is:

Not_Available

NOTE: If you wish to process the output, use:

for /f "Tokens=*" %%c in ('Not_Available') do (
:: %%c contains the NETBios computer names that are not available. 
 @echo %%c
)
Not_Available.bat contains:
@echo off
setlocal
for /f "Tokens=1,2" %%c in ('Available') do (
 if "%%d" EQU "N" @echo %%c
)
endlocal



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish