Page 1 of 1

runas with rundll32 syntax

Posted: 2021-Jul-27, 8:03 am
by UnRegistrado
I need to run this:

runas /user:MyDomain\MyAdminUser /savecred "rundll32.exe sysdm.cpl,EditEnvironmentVariables"

but the behavior is that variable Windows open but not with my admin desired user´s credential.
I used several syntaxs with the runas+rundll32 but I couldn´t get the correct syntax
Any help? thanks

Re: runas with rundll32 syntax

Posted: 2021-Aug-02, 4:19 pm
by Simon Sheppard
Hi UnRegistrado

I wonder if you may have 'Require trusted path for credential entry' enabled?

This policy setting is recommended by some to improve security, it enforces the use of a secure desktop when entering credentials, but one side effect is that it breaks RunAs.

https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.CredentialsUI::EnableSecureCredentialPrompting

'Require trusted path for credential entry policy' was never recommended by Microsoft:
https://devblogs.microsoft.com/oldnewth ... /?p=101092