ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Access denied when running Excel from DOS prompt with runas comman (https://www.excelbanter.com/excel-discussion-misc-queries/262134-access-denied-when-running-excel-dos-prompt-runas-comman.html)

Cam

Access denied when running Excel from DOS prompt with runas comman
 
Hi

I executed the following command from the DOS prompt:

runas /user:mypc.domain\dummyuser2 "C:\Documents and Settings\All
Users\Start Menu\Programs\Microsoft Office\Excel.exe"

I got the following prompt:
Enter the password for mypc.domain\dummyuser2:

After entering the password, I got the following messages:
Attempting to start C:\Documents and Settings\All Users\Start
Menu\Programs\Microsoft Office\Excel.exe as user "mypc.domain\dummyuser2" ...
RUNAS ERROR: Unable to run - C:\Documents and Settings\All Users\Start
Menu\Programs\Microsoft Office\Excel.exe
5: Access is denied.

BTW, I had to use the 'runas' from the command prompt because the
shift-rightmouseclick and 'run as' from the start menu did not work.

Thanks

Billns

Access denied when running Excel from DOS prompt with runas comman
 
On 4/21/2010 3:02 PM, Cam wrote:
Hi

I executed the following command from the DOS prompt:

runas /user:mypc.domain\dummyuser2 "C:\Documents and Settings\All
Users\Start Menu\Programs\Microsoft Office\Excel.exe"

I got the following prompt:
Enter the password for mypc.domain\dummyuser2:

After entering the password, I got the following messages:
Attempting to start C:\Documents and Settings\All Users\Start
Menu\Programs\Microsoft Office\Excel.exe as user "mypc.domain\dummyuser2" ...
RUNAS ERROR: Unable to run - C:\Documents and Settings\All Users\Start
Menu\Programs\Microsoft Office\Excel.exe
5: Access is denied.

BTW, I had to use the 'runas' from the command prompt because the
shift-rightmouseclick and 'run as' from the start menu did not work.

Thanks

Does Excel start if you start it normally, i.e. not using runas?

Why do you need "runas"?

Bill


All times are GMT +1. The time now is 10:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com