First experience with a NAS

Page 1 of 2 12 LastLast

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1

    First experience with a NAS


    I just pick up a ZyXel 325 NAS. Added two 1TB drives as individual drives (JBOD they call it).
    I can map the drives as Y: and Z: via Map Network Drive but I can't see them from a Command Prompt.

    Is there some way to access the NAS volumes so I can access them via command prompt or a batch script?

    Google searches have not turned up anything useful.
      My Computers


  2. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #2

    Hi Rich -

    Does this help you?


    Command Line Method:

    To map a drive using the command line, please open a "Command Prompt" or "PowerShell" window.


    Command Prompt commands:


    1. View list of network drives
      net use
    2. View list of current drives
      wmic logicaldisk get name
      or
      wmic logicaldisk get caption
    3. Command to map a drive
      net use <Drive_Letter>: \\<NAS_IP_or_Hostname>\<share> <password> /user:<user> /persistent:<yes|no>
      Example: "net use z: \\nas.local\admin mypassword /user:admin /persistent:yes"


    PowerShell Commands:



    1. View list of network drives
      net use
    2. View list of current drives
      get-psdrive -psprovider filesystem
    3. Command to map a drive
      net use <Drive_Letter>: \\<NAS_IP_or_Hostname>\<share> <password> /user:<user> /persistent:<yes|no>
      Example: "net use z: \\nas.local\admin mypassword /user:admin /persistent:yes"


    You will need to modify the syntax a bit.

      My Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #3

    I have the drive mapped okay, I just can't access it from command line.

    First experience with a NAS-2022-06-28-14_18_29-pc.jpg
    First experience with a NAS-2022-06-28-14_18_11-2022-06-23-__nsa325_volume1_public-z_-.jpg

    C:\WINDOWS\system32>dir z:\

    The system cannot find the path specified.C:\WINDOWS\system32>
      My Computers


  4. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #4

    Hmm...

    Try it from an elevated command prompt.
    Can you list from other drives, or does it fail with just the NAS drive letter assignments?

    If not, try this:

    3 Ways To Access Network Path Using Command Line In Windows 10

      My Computer


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #5

    My command prompt is always Admin
    First experience with a NAS-2022-06-28-14_35_29-administrator_-command-prompt.jpg
      My Computers


  6. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #6

    I can see shares using IP address but not Name which sounds like a Computer Browser problem.

    First experience with a NAS-2022-06-28-14_39_47-administrator_-command-prompt.jpg

    and I can see right down to directories and files:
    First experience with a NAS-2022-06-28-14_42_52-administrator_-command-prompt.jpg
      My Computers


  7. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #7

    @Ztruker -

    Try this command syntax -

    C:\ pushd \\NASIPGOESHERE\FOLDERNAME | dir z:\

    Works for me.

      My Computer


  8. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #8

    dir \\172.16.103.182\public works as I showed in my last post as does anything under public.

    None of the following work.
    C:\WINDOWS\system32>C:\ pushd \\172.16.103.182\public | dir z:\
    'C:\' is not recognized as an internal or external command,
    operable program or batch file.

    C:\WINDOWS\system32>pushd \\172.16.103.182\public | dir z:\
    The system cannot find the path specified.
      My Computers


  9. Posts : 5,048
    Windows 10/11 Pro x64, Various Linux Builds, Networking, Storage, Cybersecurity Specialty.
       #9

    @Ztruker -

    Wait. Try this on the command line instead, I just remembered it.

    cd /d Z:

    Or

    cd /d Z: | dir




    P.S. I don't understand why this switch is not implied by default.
      My Computer


  10. Posts : 11,247
    Windows / Linux : Arch Linux
       #10

    @Ztruker

    What does diskpart -->List Disk -->select disk -->list vol show.

    The other thing is if the NAS is operating as a JBOD (Just a Bunch of Disks) it will be acting as a single aggregate drive -- I have similar but on a Linux NAS where I have 4X 5TB HDD's as a single 20TB drive . Windows just sees it as a single 20TB network drive.

    Go into the "Storage management" facilities to see what is being mapped. It might show a Storage space or a single drive which should be addressible. Individual manual accesses to either of the drives shouldn't be possible -- the whole process is meant to be transparent to the user with the OS balancing up and scheduling the Disk I/O.

    If you want individual addressibility the NAS might have a setting "Individual disks" and for faster speed / performance or whatever some versions of RAID might be an option as well.

    Cheers
    jimbo
      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 06:26.
Find Us




Windows 10 Forums