About Admin privileges, UAC, and finding the right balance


Jose Hidalgo

Active member
Local time
7:13 AM
Posts
106
OS
Windows 11
OK, so let me get this right. 🙃

Intro:
  • I'm supposedly an experienced user, who supposedly knows what he's doing. 😅
  • I have an admin account.
  • I have purposedly disabled UAC.
  • And I was perfectly happy, until today.
The issue:
  • Among other things, I use WinGet and WinGetUI to manage and update apps. Works nicely.
  • But WinGet likes to NOT run with admin privileges.
    Some apps will simply refuse to install/update if WinGet or WinGetUI is running with admin privileges.
The attempts:
  • So I checked WinGetUI properties. The "always run as admin" checkbox was unchecked.
  • So I tried opening a CMD or PowerShell prompt without admin privileges (right-click on the Start menu, there are two options available).
  • But despite asking to open it without admin privileges, it still kept having those.
The explanation:
  • And why was that happening? Because since I had disabled UAC, all prompts had admin privileges.
The (quick but unsatisfactory) fix:
  • So I had to re-enable UAC (and reboot of course) just to be able to run WinGet without admin privileges, so it could perform the wanted update (for the record it was Spotify - most other apps had been installing/updating without issues until that point).

Bottom line: me, a supposedly experienced user who was perfectly happy without UAC, am being forced to enable UAC just to be able to keep using WinGet.

Question: Is there really no way around this? I mean, is it not possible, with UAC disabled, to force a specific app to run WITHOUT admin privileges?
Ideally I'd like to be able to disable UAC once again, and still be able to run WinGet / WinGetUI without admin privileges.

I hope you get my point. Thanks in advance! 😊
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    M.2 = 2 TB Samsung 990 Pro
    SATA = 12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB TG White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Monitor + Speakers

 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
Thanks. Not sure I understood everything, but that looks like an explanation to me, not like a solution...
Plus my issue would be the opposite (running WinGet with limited privileges).

Maybe this, which was suggested: psexec -i -s cmd
Could the same thing be applied to WinGet directly? psexec -i -s WinGetUI.exe for example.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    M.2 = 2 TB Samsung 990 Pro
    SATA = 12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB TG White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Monitor + Speakers
The gist of it is that there are issues running winget without admin rights, for apps that specify they need them to update, and vice-versa.

There are links to other issues in those two issues. It sure seems like a mess at the moment.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical Keyboard with Cherry MX Clears
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical Keyboard - Cherry MX Clear
So I checked WinGetUI properties. The "always run as admin" checkbox was unchecked.
Browse to C:\Program Files and C:\Program Files(x86) find the Winget and WingetUI. Right click each one, go to Properties/Compatibility at the bottom put a check in the box Run As Administrator. Apply and OK.
Now when you click the shortcut it will always Run As Administrator with UAC disabled.

Or you can just right click the shortcut for the app and choose Run As Administrator.
 

My Computer

System One

  • OS
    Windows 11 Pro 64 bit 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte Z390 UD
    CPU
    Intel Core i7 77000 3.60
    Motherboard
    Gigabyte Z390 UD
    Memory
    16 GB
    Graphics Card(s)
    nVidia GEForce RTX 2060 Super
    Sound Card
    onboard
    Monitor(s) Displays
    Two 27" Dell 4K monitors
    Screen Resolution
    3840 x 2160
    Hard Drives
    M.2 NVME SSD, 500 GB; Two 2TB Mechanical HDD's
    PSU
    850w PSU
    Case
    Cyberpower PC
    Cooling
    Water cooled
    Keyboard
    Backlit Cyberpower gamiong keyboard
    Mouse
    Backlit Cyberpower gaming mouse
    Internet Speed
    1 GB mbps
    Browser
    Brave
    Antivirus
    Windows Security
What? No, I think you didn't get it @Spunk .
  • With UAC disabled, I'm always in admin mode, so everything runs in admin mode, including WinGet and WinGetUI. Which is a problem because some apps refuse to install/update when you're running in admin mode.

  • With UAC enabled, I'm no longer in admin mode, so I have all the warning prompts which are quite annoying for a supposedly experienced user who supposedly knows what he's doing.
So currently there is no ideal solution.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    M.2 = 2 TB Samsung 990 Pro
    SATA = 12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB TG White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Monitor + Speakers
OK, so let me get this right. 🙃

Intro:
  • I'm supposedly an experienced user, who supposedly knows what he's doing. 😅
  • I have an admin account.
  • I have purposedly disabled UAC.
  • And I was perfectly happy, until today.
The issue:
  • Among other things, I use WinGet and WinGetUI to manage and update apps. Works nicely.
  • But WinGet likes to NOT run with admin privileges.
    Some apps will simply refuse to install/update if WinGet or WinGetUI is running with admin privileges.
The attempts:
  • So I checked WinGetUI properties. The "always run as admin" checkbox was unchecked.
  • So I tried opening a CMD or PowerShell prompt without admin privileges (right-click on the Start menu, there are two options available).
  • But despite asking to open it without admin privileges, it still kept having those.
The explanation:
  • And why was that happening? Because since I had disabled UAC, all prompts had admin privileges.
The (quick but unsatisfactory) fix:
  • So I had to re-enable UAC (and reboot of course) just to be able to run WinGet without admin privileges, so it could perform the wanted update (for the record it was Spotify - most other apps had been installing/updating without issues until that point).

Bottom line: me, a supposedly experienced user who was perfectly happy without UAC, am being forced to enable UAC just to be able to keep using WinGet.

Question: Is there really no way around this? I mean, is it not possible, with UAC disabled, to force a specific app to run WITHOUT admin privileges?
Ideally I'd like to be able to disable UAC once again, and still be able to run WinGet / WinGetUI without admin privileges.

I hope you get my point. Thanks in advance! 😊
WAG here, but I think what's happening is that when you disable UAC, you no longer have choices, so to be sure things will run properly, winget now "runs as admin". I wouldn't be surprised if other apps do the same.
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 22631.2861
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Envy TE01-1xxx
    CPU
    Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz 2.90 GHz
    Motherboard
    16.0GB Dual-Channel Unknown @ 1463MHz (21-21-21-47)
    Memory
    16384 MBytes
    Graphics Card(s)
    Intel UHD Graphics 630
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Monitor 1 - Acer 27" Monitor 2 - Acer 27"
    Screen Resolution
    1920 x 1080
    Hard Drives
    WDC PC SN530 SDBPNPZ-512G-1006 (SSD)
    Seagate ST1000DM003-1SB102
    Seagate BUP Slim SCSI Disk Device (SSD)
    PSU
    HP
    Case
    HP
    Cooling
    Standard
    Keyboard
    Logitech Wave K350
    Mouse
    Logitech M705
    Internet Speed
    500 mbps
    Browser
    Firefox
    Antivirus
    Windows Defender
    Other Info
    That's all Folks!
  • Operating System
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP
    CPU
    Intel Core i7 (10th gen) 10700
    Motherboard
    Intel
    Memory
    16 GB
    Graphics card(s)
    Intel UHD Graphics 630
    Sound Card
    Built-in
    Monitor(s) Displays
    Acer 27" & Samsung 24"
    Screen Resolution
    1920 x
    Hard Drives
    SSD (512 GB)
    HDD (1 TB)
    Seagate
    PSU
    Intel i7 10th Generation
    Case
    HP
    Cooling
    HP/Intel?
    Mouse
    Logitech M705
    Keyboard
    Logitech Wave K350
    Internet Speed
    50 mbps
    Browser
    Firefox 90.2
    Antivirus
    Windows Defender
    Other Info
    Headphone/Microphone Combo
    SuperSpeed USB Type-A (4 on front)
    HP 3-in-One Card Readr
    SuperSpeed USB Type-C
    DVD Writer
I do understand. Windows has different levels of Administrators.

If you login to Windows as a Admin, you still have to start apps like Command Prompt, Powershell, and certain apps as an Admin. Meaning you have to right click the Shortcut and choose Run as Administrator.
If you run a Command Prompt normally, the prompt will say
C:\Users\UserName> Running some system commands will fail and tell you you do not have permission
but if you Search for CM, Command Prompt or it's shortcut and Right click it and choose Run As Administrator, the prompt will show
C:\Windows\System32> This is an Elevated Command Prompt or a prompt that is Run As Administrator.

If it is an app that requires Admin rights to run, Like WinGetUI and you use it a lot, Check the Box, Run As Administrator and Applying this will save that app to Always Run as Administrator. Eliminating your problem.
 

My Computer

System One

  • OS
    Windows 11 Pro 64 bit 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte Z390 UD
    CPU
    Intel Core i7 77000 3.60
    Motherboard
    Gigabyte Z390 UD
    Memory
    16 GB
    Graphics Card(s)
    nVidia GEForce RTX 2060 Super
    Sound Card
    onboard
    Monitor(s) Displays
    Two 27" Dell 4K monitors
    Screen Resolution
    3840 x 2160
    Hard Drives
    M.2 NVME SSD, 500 GB; Two 2TB Mechanical HDD's
    PSU
    850w PSU
    Case
    Cyberpower PC
    Cooling
    Water cooled
    Keyboard
    Backlit Cyberpower gamiong keyboard
    Mouse
    Backlit Cyberpower gaming mouse
    Internet Speed
    1 GB mbps
    Browser
    Brave
    Antivirus
    Windows Security
Always running WinGetUI as admin will not eliminate the problem.
Always running WinGetUI as admin is what causes the problem.

If I disable UAC, I will get the problem.
If I enable UAC an I click the admin checkbox, I will get the problem.

The only way around this that I can think of is enabling UAC and having two separate WinGetUI executables. One with admin rights and one without admin rights. Same as checking/unchecking the checkbox on demand, so, not really a solution.
Plus that won't be satisfactory to me, because I want to keep UAC disabled.

I don't know how else I can say this. I give up.
My problem won't be solved anyway. 🤷‍♂️
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Personal build
    CPU
    AMD Ryzen 7700
    Motherboard
    Asus TUF Gaming B650M-Plus WiFi
    Memory
    32 GB (2x16) Corsair Dominator DDR5 RGB 6000 MT/s
    Graphics Card(s)
    Not yet
    Sound Card
    No
    Monitor(s) Displays
    Philips BDM3270QP2
    Screen Resolution
    2560x1440
    Hard Drives
    M.2 = 2 TB Samsung 990 Pro
    SATA = 12 TB Western Digital Red (WD120EFAX, SATA, 5400 rpm)
    PSU
    850W Corsair RM850e (2023, ATX 3.0)
    Case
    Corsair Crystal 280X RGB TG White
    Cooling
    Aerocool Mirage L240 AIO
    Keyboard
    Corsair K55
    Mouse
    Vertical mouse from AliExpress
    Internet Speed
    Fiber
    Browser
    Firefox, Brave, Tor
    Antivirus
    Windows Defender
    Other Info
    1000VA UPS (Nitram PB1000 LCD) for PC + Monitor + Speakers
Try the following:

1. Disable UAC.
2. Open Terminal by right clicking on the Start menu and select Terminal NOT Terminal (Admin).
3. CD to the location of the file I attached to this post after you have downloaded it etc...
4. Run the file by typing CheckAdmin.bat and press enter.
5. If it states Welcome, Admin, then you are in an elevated cmd window.
6. If it tells you Get lost, User, then you are NOT in an elevated cmd window and you should be able to run winget without admin elevation by cd'ing to it's location and running the exe.

HTH
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    Ryzen 9 3900X
    Motherboard
    ASUS ROG Strix X570-E Gaming
    Memory
    G-Skill RipjawsV F4-3600C18 (16GB x 2)
    Graphics Card(s)
    Gigabyte RX 5700 XT Gaming OC
    Sound Card
    Realtek ALC1220P
    Monitor(s) Displays
    ASUS VE278 (x 2)
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 850 Pro 256GB
    Samsung 970 Pro NVMe 512GB (x 2)
    ST10000VN0004 10TB (x 2)
    ST10000VN0008 10TB (x 2)
    ST4000VN000 4TB (x 2)
    PSU
    Corsair HX1000
    Case
    Corsair Carbide 400R
    Cooling
    AMD Wraith Prism (Stock)
    Keyboard
    Logitech G213
    Mouse
    Logitech G502
    Internet Speed
    100Mbps down / 40Mbps up
    Browser
    Firefox - Chrome - Edge
    Antivirus
    Windows Defender - Clamwin
Back
Top Bottom