4
Until now I used shortcut with "runas/user:ComputerName\Administrator /savecred "C:\Program Files (x86)\example.exe"
when I type a command in the cmd error 740 occurs:
C:\>"C:\Users\user\Favorites\Linki\runas.exe.lnk"
Attempting to start C:\Program Files (x86)\example.exe as user "ComputerName\Administrator" ...
RUNAS ERROR: Unable to run - C:\Program Files (x86)\example.exe
740: The requested operation requires elevation.
Does anyone know if this is an error or a deliberate action, and how I can achieve this functionality now?
Regards
1Is your command prompt in admin/elevated mode? – techturtle – 2016-09-30T14:33:22.647
@techturtle Yes it is. But shortcut is lunched from standard user and admin cred has to be typed once. /savecred should save it – dudinr1 – 2016-09-30T15:21:53.260
FYI for people coming more recently - I just got bitten by this on a machine, now running Windows 10 version 1803 (as installed on 2018-06-18). Solutions below worked. – wally – 2018-06-24T11:25:05.420
Is there a reason you cant simply "right-click, run as admin"? Do you really need to run these apps under the actual Administrator user? – Cliff Armstrong – 2018-06-24T14:29:56.540
To clarrify, the reason I ask is that the windows Administrator user account is "special" in several ways. Among them being the MS has been trying to phase its use out and will probably remove it from Windows entirely one day. Even if you normally use a basic user account that cant elevates its own privileges, it's still better to create a dedicated administrative user and elevate to that... which also still works with "right click, run as admin" without necessitating batch files and runas shortcuts. – Cliff Armstrong – 2018-06-24T14:56:10.340