I am trying to map a drive with an elevated batch file but any attempt to use the Net Use command fails. The error is always: "The system cannot find the drive specified."
I am using the following code: Net Use w: "\Server\Folder"
It works fine with an elevated command prompt or with a non-elevated batch file.
I also tried simply: Net Use Yet with an elevated batch file even that fails with the same error message.