runas with rundll32 syntax

Microsoft Windows
Post Reply
Posts: 1
Joined: 2021-Jul-27, 7:57 am

runas with rundll32 syntax

Post 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
User avatar
Simon Sheppard
Posts: 49
Joined: 2021-Jul-10, 7:46 pm

Re: runas with rundll32 syntax

Post 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.

'Require trusted path for credential entry policy' was never recommended by Microsoft: ... /?p=101092
Post Reply