RunAs.exe and mapped drive

N

nlt.

Hi

Is there a possibility in XP Pro to run a program from mapped drive with
RunAs.exe not using the UNC path? My program requires path that begins with
drive letter but something like: runas /user:<domain>\<user name> z
\program.exe doesn't work. I'd be very grateful for help.
 
P

Pegasus \(MVP\)

nlt. said:
Hi

Is there a possibility in XP Pro to run a program from mapped drive with
RunAs.exe not using the UNC path? My program requires path that begins with
drive letter but something like: runas /user:<domain>\<user name> z
\program.exe doesn't work. I'd be very grateful for help.

The command

runas /user:MyDomain\Username cmd.exe

works very well - I tried it myself a moment ago. However,
I do not see where UNC paths get into this question. While
running under the spawned "runas" session one can map any
drive by letter or UNC path but the mapping won't be visible
outside the spawned session.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top