NET VIEW alternative for Win10


  1. Posts : 4
    Windows 10
       #1

    NET VIEW alternative for Win10


    Apparently NET VIEW (without parameters) functionality is dependent on the insecure and deprecated SMB1 protocol, which is disabled by recent versions of Windows 10 (mine is 20H2).
    Windows Explorer works just fine without it but I am trying to get a list of computers on the network (their NETBIOS names) on the command line, and getting:
    Code:
    > net view
    System error 1231 has occurred.
    The network location cannot be reached. For information about network troubleshooting, see Windows Help.

    Is there an alternative?

    Thank you!
      My Computer

  2. Try3's Avatar
    Posts : 9,378
    Windows 10 Home x64 Version 21H2 Build 19044.1288
       #2

    One alternative is explained in
    net view - SS64

    Denis



    Welcome to TenForums.

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month.
    - By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
    - Both tutorial lists are searchable.
    - You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
    taskbar toolbars site:tenforums.com/tutorials

    You can search TenForums using the search box in the top-right corner of all TenForums webpages or using Advanced Search - TenForums
    - You can also search TenForums threads in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
    Search for drivers by HardwareID site:tenforums.com
    - [This is what the search box in the top-right corner of TenForums webpages does automatically]
      My Computer


  3. Posts : 4
    Windows 10
    Thread Starter
       #3

    Try3 said:
    One alternative is explained in
    net view - SS64
    This one?
    Code:
    # List the non-admin$ ("Type=0") file shares on the remote server: SERVER64
    ...

    I am trying to get a list of machine names on the network, not the shares on a known one.

    - - - Updated - - -

    Success!

    Code:
    @echo off
    setlocal enableextensions enabledelayedexpansion
    for /f "skip=3 tokens=1,3" %%a in ('arp -a') do (
      set ip=%%a
      if "%%b" == "dynamic" if not "!ip:~0,7!" == "169.254" (
        for /f "skip=8 tokens=1-3" %%b in ('nbtstat -A %%a') do (
          if "%%c" == "<00>" if "%%d" == "UNIQUE" echo %%a	%%b
    )))

    The spacing in the echo is a TAB character to make the columns align.

    It is slow, since arp displays non-NETBIOS devices as well, and nbtstat takes its sweet time to fail on them. I tried to filter the obvious ones out.

    It's ugly as frell but it works.

    Improvements are welcome.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 17:06.
Find Us




Windows 10 Forums