locked
When remotly executed net use command to map a drive with administrator credentials, the drive shows "unavailable" status RRS feed

  • Question

  • Hi, 
    I am trying to execute "net use " command remotely to map a network share directory by using administrator credentials, to one of my windows server 2012, command executes successfully.

    However, the mapped drive shows "unavailable" status. what could be the cause, and how to workaround this ?

    Following is the command I am using,
    net use * \\xx.xxx.xx.x\share\Software password /USER:Administrator

    I have also tried with  the "mount" as well as the  "PS-Drive" commands  but it was also not helpful.
    When I run the above commands on admin terminal it gets executed successfully and mapped drive shows the "OK" status, but same command when tried to execute remotely encounters the above problem.

    Thanks in Advance,
     Krishna

    • Moved by Bill_Stewart Monday, February 8, 2016 4:29 PM Move to more appropriate forum
    Monday, February 8, 2016 11:05 AM

Answers

  • The problem is with the server or network.  It has nothing to do with elevation.  The elevation issue only affects successfully mapped drives. Start be rebooting the server. It may also be an SMB issue or a router issue.

    \_(ツ)_/

    Tuesday, February 9, 2016 5:52 AM

All replies

  • No a script issue.  You need to fix the settings or the server or the network.

    \_(ツ)_/

    Monday, February 8, 2016 2:47 PM
  • Administrator has 2 diferent access tookens after logon: https://technet.microsoft.com/en-us/library/jj574202.aspx

    If you run your "net use"-script  with elevated privileges you use one of them and if you run your script as standard  user you use the other.

    One of access tokens can have access rights to the share the other can have not.

    https://technet.microsoft.com/en-us/library/ee844140(v=ws.10).aspx


    my blog: http://shserg.ru/


    • Edited by s.h.s. _ Monday, February 8, 2016 3:39 PM
    Monday, February 8, 2016 3:37 PM
  • Thanks !!! 
    But I have already tried by creating the "EnableLinkedConnections", it was not working for me, is there any specific use-case where after creating the above registry entry it the solution you selected  will not work? 

    I might be missing something obvious !!! :)

    Thanks Again.
      Krishna


    Tuesday, February 9, 2016 5:28 AM
  • The problem is with the server or network.  It has nothing to do with elevation.  The elevation issue only affects successfully mapped drives. Start be rebooting the server. It may also be an SMB issue or a router issue.

    \_(ツ)_/

    Tuesday, February 9, 2016 5:52 AM