You are currently offline, waiting for your internet to reconnect

Cannot Use Runas.exe to Run Remote Programs on Mapped Drives

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q303308
When you try to use the Runas.exe tool to start an executable (.exe) program that is located on a mapped network drive, you may receive one of the following error messages.

Using Runas.exe at a Command Prompt

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

Using Runas.exe in the Windows User Interface

The application failed to initialize properly (0xc0000022). Click on OK to terminate the application.
This behavior can occur if the mapped drive is connected in the security context of the locally logged on user. Runas.exe cannot access resources that were authenticated in the security context of another user.
Connect to the remote resource directly by using the Universal Naming Convention (UNC) path. To run the remote program by using the UNC path, use a command that is similar to the following command:
runas /user name:domain name\user name \\server name\share name\program name.exe
NOTE: The preceding default setting loads the profile for the alternate credentials. You may use the /noprofile or /netonly switches to prevent the profile from loading. For more information about Runas.exe, type runas /? at a command prompt, and then press ENTER.
This behavior is by design.
Microsoft Windows 2000 does not strictly enforce the security context of mapped drives from the Runas.exe tool and allows this procedure to work.
gui cmd line commandline command-linen

Article ID: 303308 - Last Review: 11/01/2006 15:58:10 - Revision: 1.1

  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • kbenv kberrmsg kbprb KB303308