If I use runas /user:DOMAIN\user cmd.exe
(using XP), previously mapped persistent network drives are considered unavailable. net use
shows:
Status Local Remote Network
-------------------------------------------------------------------------------
Unavailable H: \\SERVER\SHARE Microsoft Windows Network
dir H:
fails with "The system cannot find the path specified.".
The connection is easily revived with `NET USE H: \SERVER\SHARE': not asked for a password when I do this. What is going on? Can I make Windows safely revive this drive automatically when it is first accessed.
Doing a
runas
does not load a user's profile by default, you might have more luck when supplying the/profile
option torunas
. You also might be running into the problem that mapped drives connected in a specific user's context are unavailable to others. Quoting from the MSDN documentation for Windows XP:Source: http://msdn.microsoft.com/en-us/library/windows/desktop/ms685143(v=vs.85).aspx
This is by design and cannot be changed.