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

Jerold Schulman

July 14, 2002

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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:FolderProgram.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:DomainNameUserName \ServerNameShareNameProgram.exe

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


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like