0
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?
1When 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 – 2013-03-25T23:16:28.063
1@Hennes: I thought
$
shares were always hidden by design. – user1686 – 2013-03-25T23:18:30.0372Been that way since at least NT 4. That is why they are called administrative shares: they are for admins. – Patrick Seymour – 2013-03-25T23:19:53.730
@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 – 2013-03-25T23:22:38.210
Thank you, looking for a solution for myself I had not considered that the shares may not be available to all – Miserable Variable – 2013-03-25T23:54:34.307