Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
July 13, 2005
Using the NET VIEW command, I have scripted nwk.bat to return the NetBIOS domain and workgroup names that exist on your network.
The Syntax for using nwk.bat is:
[call] nwkorfor /f "Tokens=*" %%w in ('nwk') do ( @echo %%w)
nwk.bat contains:
@echo offfor /f "Skip=3 Tokens=*" %%d in ('net view /DOMAIN') do ( for /f "Tokens=1" %%x in ('@echo %%d^|FIND /V "The command"') do ( @echo %%x ))
You May Also Like