Dwight Baer
asked on
How do I deal with an application that needs Administrator permissions to run, in a non-administrator account?
My application seems to need Administrator permissions to run. When I try to run it on a non-Administrator login, I get the following error:
>>>>> Start of error <<<<<<<<<
-------------------------- -
Director Player 6.0
-------------------------- -
Unable to copy the driver file C:\WINDOWS\dirdib.drv to your Windows directory.
Your disk may be full.
>>>>> End of error <<<<<<<<<
Is there any way to create a bat file that would somehow launch the application with "Run as Administrator" permissions?
Thanks.
>>>>> Start of error <<<<<<<<<
--------------------------
Director Player 6.0
--------------------------
Unable to copy the driver file C:\WINDOWS\dirdib.drv to your Windows directory.
Your disk may be full.
>>>>> End of error <<<<<<<<<
Is there any way to create a bat file that would somehow launch the application with "Run as Administrator" permissions?
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK ... I tried using "runas.exe ..." It works, except I don't see in the usage any way to supply the password within the batch file that's calling the application. So I'm left with the same problem - I can't have the end-user typing in the administrator password.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot, sk raja raja! I haven't completely resolved this issue but it's going to take me a while to digest those links. And I think the answers are there.
ASKER
2. This is XP ... so no UAC.
3. On my "Properties --> Compatibility" tab I don't see "Always run as Administrator". All I see is "Run this program in Compatibility Mode for ..." with the choices of 2000, NT 4, W98 and W95.
I see "runas.exe" under C:\Windows\System32. Is there a syntax that I can use this in a batch file to launch the application as administrator? I could supply the administrator password in the batch file script, which hopefully would be invisible to the user. Thanks.