winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Settings don't affect all user accounts on a system.

Open Yoshlix opened this issue 2 years ago • 6 comments

Describe the bug

When turning features on or off (e.g. show file extensions) it will not affect all user accounts on a system. To be clear, only the admin user account appears to be affected by the settings you make. Also, in the "Install" sections, the script doesn't detect the installed packages for the currently logged in user.

To Reproduce

Log in with a normal account and run the script with your admin account. Then try to get the installed packages or change preferences under "Tweaks".

Expected behavior

The script should work for the logged in user, even if he is not admin

Yoshlix avatar Jul 22 '24 17:07 Yoshlix

@Yoshlix Can you specify what windows version are you on and what system do you have ?

notyusufkhalifa avatar Jul 24 '24 14:07 notyusufkhalifa

Windows 11 Pro, 23H2 (22631.3880) CPU: Intel 12700k GPU: Nvidia RTX 3060 RAM: 32GB

@YusufKhalifadev Any other information needed?

Yoshlix avatar Jul 24 '24 14:07 Yoshlix

@Yoshlix what do you mean by the admin user is this like opening the terminal as admin or switching to another user entirely.

notyusufkhalifa avatar Jul 24 '24 15:07 notyusufkhalifa

@YusufKhalifadev So I have two user accounts on my system. On account with normal user rights. That's the account I usually use. Then I have a second account with admin rights. Logged in with my normal account, I start an elevated PowerShell terminal to start the script.

Yoshlix avatar Jul 24 '24 16:07 Yoshlix

@Yoshlix Okay it's solved then because the script run at a user level so the tweaks made change per-user not system-wide so when chris made the script it was intended to run with admin in the normal user not with a separate admin account that's how to fix it remove your admin account and start the script as admin with your normal user.

notyusufkhalifa avatar Jul 25 '24 07:07 notyusufkhalifa

Yeah, that makes sense, but I think it should be possible to change these things system wide. Anyway, thanks for your help!

Yoshlix avatar Jul 25 '24 18:07 Yoshlix