Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There are many questions on stackexchange asking for a persistent across reboot functionality, and the answers point either to registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices or psubst.

It seems to me that superficially at least a similar effect can be achieved using persistent mapped network drive, for example the second command below can replace the first; they both allow access to c:\<path> using the shorter X:

psubst X: C:\<path>
net use X: \\localhost\C$\<path>

What are the circumstances under which mapping a network drive will not work?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

Not everyone has access to the dollar sign shares. By default, only administrators do.

Edit: They are also not available on home editions of Windows, from what I read.

share|improve this answer
1  
When did that change. Before they used to work precisely the same way, except that due to a bug they did not show up when you browsed to a computer. (Later that bug changed into a design feature). –  Hennes Mar 25 '13 at 23:16
1  
@Hennes: I thought $ shares were always hidden by design. –  grawity Mar 25 '13 at 23:18
2  
Been that way since at least NT 4. That is why they are called administrative shares: they are for admins. –  Patrick S. Mar 25 '13 at 23:19
    
@grawity I wish I had a good source to point to. Esp since this may be an urban legend. But the way it got explained to me is that it initially was an 'undocumented feature'. At that time I was new to windows and struggling with win95 and ghost, so NT 4 time seems about right. –  Hennes Mar 25 '13 at 23:22
    
Thank you, looking for a solution for myself I had not considered that the shares may not be available to all –  Miserable Variable Mar 25 '13 at 23:54

A couple things come to mind why you might have an issue with the net use command

  1. you are assuming the user has access to the administrative shares. By default this is an admin only share.
  2. You are assuming the shares are enabled. If the administrative share was turned off, this wont work.
  3. You are assuming networking itself is properly working. Its possible that networking could be broken, localhost is redirected somewhere else, etc..

These scenarios arent likely, but could happen.

Using the net use command is taking unnecessary steps that would be avoided with psubst.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.