PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Editing environment variables for normal user (non-admin) requires UAC prompt

Open pueblofunky opened this issue 1 year ago • 0 comments

Microsoft PowerToys version

0.77.0

Installation method

GitHub

Running as admin

No

Area(s) with issue?

Environment Variables

Steps to reproduce

PowerToys installed machine wide with a local admin user. PowerToys started with normal user (non local admin). When I enable environment variables and click on Launch Environment Variables the UAC prompt pops up and then I can only manage my variables for the local admin user but not for the normal user. "Launch as administrator" is greyed out - but shouldn't. When I click on it, the UAC prompt should pop up and ask for my local admin user and then I can edit the local admin user variables AND system variables.

✔️ Expected Behavior

I should be able to edit my environment variables for the normal user. When I call "C:\Windows\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables" I can edit my normal user variables only. When I call "C:\Windows\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables" with "Run as administrator" the UAC prompt pops up and then I enter my local admin user and I can edit the local admin user variables AND the system wide variables.

❌ Actual Behavior

When I enable environment variables and click on Launch Environment Variables the UAC prompt pops up and then I can only manage my variables for the local admin user but not for the normal user. "Launch as administrator" is greyed out - but shouldn't. When I click on it, the UAC prompt should pop up and ask for my local admin user and then I can edit the local admin user variables AND system variables.

Other Software

No response

pueblofunky avatar Jan 12 '24 14:01 pueblofunky