JSI Tip 5511. You cannot use Runas to execute a program on a mapped drive?

When you use RunAs.exe to execute a program located on a mapped drive, you receive one of the following errors:

RUNAS ERROR: Unable to run - drive:\Folder\Program.exe
The system cannot find the path specified.

or

The application failed to initialize properly (0xc0000022). Click on OK to terminate the application.

This problem can occur because RunAs.exe cannot access resources that were authenticated in the security context of another user.

To workaround this problem, use the following syntax:

runas /user:DomainName\UserName \\ServerName\ShareName\Program.exe

NOTE: You can use the /noprofile or /netonly switches to prevent the DomainName\UserName profile from loading.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish