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.
0 comments
Hide comments