Cmd cannot find a mapped drive

0

Here's my problem:

we have a network drive that's mapped to T:\, and it's pointing to \\somecomputer\somefolder\.

We can run: \\somecomputer\somefolder\someapp.exe from cmd.

We can also run pushd \\somecomputer\somefolder\.

We cannot run pushd T:\, and several applications cannot resolve the path T:\someapp.exe.

What would some potential causes of this problem be?

Joseph Nields

Posted 2015-04-23T17:48:46.057

Reputation: 99

1My first guess is that you are running cmd in a different user context. Do you see the drive if you do this at in the cmd prompt: *net use* – EBGreen – 2015-04-23T17:53:02.593

@EBGreen, it is there. – Joseph Nields – 2015-04-23T17:55:35.753

Answers

0

One possibility is that cmd is running in elevated mode (ie. with Run as administrator selected). The problem is discussed in greater detail here.

The solution is to use net use to mount the drive or simply merge this into your registry:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001

A reboot is required after making the above change.

AlainD

Posted 2015-04-23T17:48:46.057

Reputation: 3 150