Windows – Runas not working on Windows 10

administratorrunaswindows 10

So, I have a client that needs to run a software with higher privileges but the user works with a limited account and I'm not willing to give him the password for several reasons.

I was looking for a way to let the program start without prompting for admin password, and I ran into runas.

This is the command that I'm using:

runas /user:Administrator /savecred "Path\To\Software.exe"

What happens is that it asks for password the first time, but nothing happens after inserting the password.
The program would just not launch, no matter how many times I run the command.

Path is correct and admin account is fine, still no results.

I also checked that 2 services are running (don't remember their names but they're related to running apps with different privileges).

Do you guys have a solution to have this working?

Best Answer

If User Account Control (UAC) is enabled on your computer (I hope the answer is "yes"), "runas" command does not elevate your privileges. i.e. It runs the app, but not with administrative privileges.

However, try this Windows PowerShell command:

Start-Process "Path\To\Software.exe" -Verb "runas"

Naturally, you have to enter this command in Windows PowerShell instead of Command Prompt.

That said, this is definitely not a solution to your problem. Microsoft's policy is to either not provide or outright deny any and every means that encourages using administrative privileges. (This policy came into effect after the 2003 security fiasco.) The closest thing that Microsoft provides is an Application Compatibility Toolkit that allows you to ignore the app's manifest and run with limited privileges. This does the trick for the apps that are stupid enough not to check whether they got what they asked for in their manifests.

Of course, I do notice third-party security solutions from time to time, that enable what you want. Except, due to unpopularity, they disappear quickly.

Related Question