runas.exe requiere elevación Windows 11

Jorge Pérez 20 Reputation points
2023-07-20T20:40:54.41+00:00

Necesito correr un programa que necesita privilegios de administrador (software de cámaras), pero su uso es un perfil de usuario normal, que no debe tener privilegios de admin, por lo cual trato de usar runas.exe,

Cuando lo ejecuto desde una cuenta de administrador todo funciona muy bien.

Pero cuando lo quiero ejecutar de una cuenta standard pide clave de administrador, si la coloco anda perfecto, pero lo que necesito es que los usuarios standard puedan ejecutar dicho programa sin tener que brindarles una contraseña de administrador.

He intentado con runas.exe desde sesión de administrador y desde sesión de usuario, ejecutando cmd, como powershell como administrador pero siempre obtengo el mismo error:

C:\WINDOWS\system32>runas.exe /user:administrador /savecred "C:\Program Files\smartpss.exe"

ERROR RUNAS: no se puede ejecutar - C:\Program Files\smartpss.exe

740: La operación solicitada requiere elevación.

Probé hasta bajando el nivel del UAC al mínimo y sigue sin funcionar, probé en las propiedades del ejecutable y de la carpeta del programa dándole los máximos privilegios a todos los usuarios y sigue haciendo lo mismo

Se necesita que el usuario standard pueda correr la aplicación sin poner clave de administrador.

Tengo entendido que Windows 11 cambio su seguridad, habrá alguna alternativa a este comando o como lo soluciono ?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 36,401 Reputation points
    2023-07-25T00:22:05.16+00:00

    Does that program exist or is it really "C:\Program Files\smartpss.exe"? When the Windows installer installs a program, it is typically in some subfolder. It is not in the root of "C:\Program Files".

    My reply was based on this page:

    https://dahuawiki.com/SmartPSS/How_to_Install_SmartPSS_on_Non_Admin_Account

    That's where I got the full folder path. I do not have this software installed so I have no way to test that command. Try it using cmd.exe and see if that works.

    The page also says "After SmartPSS was installed under the admin, you can then logged out of the admin, and log into a “standard user” account that will be using SmartPSS without admin credentials."

    Based on that page, a standard user should just be able to run the program and you should not need to run elevated.

    It might be best if you contact SmartPss support and ask them for help.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2023-07-24T11:55:34.9133333+00:00

    Try this. Verify that the path to the program is correct for your machine.

    runas /user:administrador /savecred "powershell.exe -command \"start-process \"C:\Program Files\Smart Professional Surveillance System\SmartPSS\SmartPSS.exe\" -verb runas"
    
    0 comments No comments

  2. Jorge Pérez 20 Reputation points
    2023-07-24T22:19:49.0866667+00:00
    C:\Users\guardiacentral>runas /user:administrador /savecred "powershell.exe -command \"start-process \"C:\Program Files\Smart Professional Surveillance System\SmartPSS\SmartPSS.exe\" -verb runas"
    Intentando iniciar powershell.exe -command "start-process "C:\Program Files\Smart Professional Surveillance System\SmartPSS\SmartPSS.exe" -verb runas como usuario "ADMI-SGUARDIA3\administrador" ...
    
    0 comments No comments

  3. Jorge Pérez 20 Reputation points
    2023-07-25T21:14:04.2033333+00:00

    Hello MotoX80:

    Thanks for your answer, I already solved it, in the end I removed windows 11 and installed Windows 10, I applied the commands and solved. of course using runas.exe

    C:\Users\guardiacentral>runas /user:administrador /savecred "C:\Program Files\Smart Professional Surveillance System\SmartPSS\SmartPSS.exe"

    Thank you,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.