NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

PeteCress's avatar
PeteCress
Apprentice
Jul 24, 2015

Unable to NET USE "User" Share From Windows 7

Seems to me like the .BAT file I have been using used to work for the share belonging to "PeteCress".

viz:

:* ----------------------------------------------------
:* Deletes, then re-establishes connections
:* using NAS box's Admin ID... which gets
:* us access to the "Admin" share, as opposed
:* to using the Windows' ID which does not.


NET USE * /DELETE  /yes
KLIST   purge

CMDKEY    /add:NAS /user:admin /pass:Sandow1

NET USE A: \\NAS\A                  /savecred /p:yes 
NET USE T: \\NAS\Temp               /savecred /p:yes
NET USE H: \\NAS\PeteCress          /savecred /p:yes

NET USE O: \\NAS\B\DVDs_Owned       /savecred /p:yes

NET USE L: \\NAS\B\DVDs_Library     /savecred /p:yes
NET USE N: \\NAS\B\DVDs_NetFlix     /savecred /p:yes

NET USE S: \\NAS\$OriginalRips      /savecred /p:yes


PAUSE

But now it is tripping over a PW prompt: 

C:\BAT>NET USE * /DELETE  /yes
You have these remote connections:

    A:              \\NAS\A
    L:              \\NAS\B\DVDs_Library
    N:              \\NAS\B\DVDs_NetFlix
    O:              \\NAS\B\DVDs_Owned
    S:              \\NAS\$OriginalRips
    T:              \\NAS\Temp
Continuing will cancel the connections.

The command completed successfully.


C:\BAT>KLIST   purge

Current LogonId is 0:0x93ac0
        Deleting all tickets:
        Ticket(s) purged!

C:\BAT>CMDKEY    /add:NAS /user:admin /pass:xxx

CMDKEY: Credential added successfully.

C:\BAT>NET USE A: \\NAS\A                  /savecred /p:yes
The command completed successfully.


C:\BAT>NET USE T: \\NAS\Temp               /savecred /p:yes
The command completed successfully.


C:\BAT>NET USE H: \\NAS\PeteCress          /savecred /p:yes
The password is invalid for \\NAS\PeteCress.

Enter the user name for 'NAS':

I went back to Security | User & Group Accounts | Manage Users and made sure that the password for PeteCress was the same as the admin PW - and entered "PeteCress" for user name, but it is still not happy.

 

Did, however, note in Security | User & Group Accounts | Preferences that Private home shares for users: = Enabled.

 

Bottom line is that I have some documents in the "PeteCress" share that I would like to access from Windows via a NET USE or, at least, drilling down through the NAS' parent icon.

 

What am I doing wrong?

 

Also, is there a way for me to copy those documents and put them in a non-user share?  (remembering that I can't get to them right now)

5 Replies

  • PeteCress is a home share?

     

    Maybe try

     

    net use * /delete

    net use H:  \\NAS\PeteCress /user:PeteCress password

     

    or 

     

    net use * /delete

    net use H: \\NAS\home\PeteCress /user:admin password

     

    • PeteCress's avatar
      PeteCress
      Apprentice

      OK... I tried to simplify things and just connect to the NAS box's "Home" share:

      C:\BAT>NET USE * /DELETE  /yes
      You have these remote connections:
      
          A:              \\NAS\A
          T:              \\NAS\Temp
      Continuing will cancel the connections.
      
      There are open files and/or incomplete directory searches pending on the connect
      ion to T:.
      
      The command completed successfully.
      
      
      C:\BAT>KLIST   purge
      
      Current LogonId is 0:0x93ac0
              Deleting all tickets:
              Ticket(s) purged!
      
      C:\BAT>CMDKEY    /add:NAS /user:admin /pass:xxx
      
      CMDKEY: Credential added successfully.
      
      C:\BAT>NET USE A: \\NAS\A                  /savecred /p:yes
      The command completed successfully.
      
      
      C:\BAT>NET USE T: \\NAS\Temp               /savecred /p:yes
      The command completed successfully.
      
      
      C:\BAT>NET USE H: \\NAS\Home               /savecred /p:yes
      The password is invalid for \\NAS\Home.
      
      Enter the user name for 'NAS': admin
      Enter the password for NAS:
      System error 1219 has occurred.
      
      Multiple connections to a server or shared resource by the same user, using more
       than one user name, are not allowed. Disconnect all previous connections to the
       server or shared resource and try again.
      
      C:\BAT>NET USE S: \\NAS\$OriginalRips      /savecred /p:yes
      The command completed successfully.
      
      
      C:\BAT>PAUSE
      Press any key to continue . . .

      So it's happy with shares "A", "Temp", and "$OriginalRips"...

       

      The question seems to be "What does it not like about "Home" ?

       

      Noting that we are using ID=admin and the admin PW in all cases, I am starting to think it's an issue with 

      C:\BAT>CMDKEY    /add:NAS /user:admin /pass:xxx

      Specifically, that it is from Windows' perspective.   i.e. it is citing Windows' "admin" account and PW while the NAS box probably wants it's own "admin" ID/PW.... which happen to be identical to Windows' in this case...

       

      But how to specify the ID/PW as belonging to the NAS box?  

       

      I guess this has morphed into a Windows question.... ? 

      • StephenB's avatar
        StephenB
        Guru

        Oops.

         

        I meant

        net use * /delete

        net use H: \\NAS\C\home\PeteCress /user:admin password

         

        home isn't a share at all.  But you can access the full volume (normally C on 4.2.x firmware) if you use admin credentials.

         

        The NAS doesn't really care if you use "admin" or "NAS\admin" for the logon - it ignores any machine or domain qualifier.  The password of course needs to be the NAS admin password, not the windows admin password.