microsoft / microsoft/winget-cli
Cannot install anything under user account without administrative permissions
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
When installing under an user account without an administrative permissions, any applications requiring an elevated privileges are failed to install with Installer failed with exit code: 1223
Steps to reproduce
- create c:\temp and give a full permissions to Users and Administrators of local Windows
- set TMP=C:\TEMP
- winget install onenote --source msstore
- Confirm
- Enter an Administrator account password
Installation is failed
Expected behavior
The application can be installed under an user account, when entering an administrative permissions
Actual behavior
Installation is failed with "Windows cannot access c:\temp\winget...\download.exe
The permission analyse shows following:
before installing, c:\temp is empty with following permissions:
PS C:\Users\alex> get-acl C:\temp | Format-list
Path : Microsoft.PowerShell.Core\FileSystem::C:\temp
Owner : BUILTIN\Administrators
Group : WINPC\alex
Access : BUILTIN\Administrators Allow FullControl
BUILTIN\Users Allow FullControl
After installing (with an error message, described above) c:\temp\winget has the following permissions:
PS C:\Users\alex> get-acl C:\temp\winget | Format-list
Path : Microsoft.PowerShell.Core\FileSystem::C:\temp\winget
Owner : WINPC\alex
Group : WINPC\alex
Access : NT AUTHORITY\SYSTEM Allow 268435456
NT AUTHORITY\SYSTEM Allow FullControl
WINPC\alex Allow 268435456
WINPC\alex Allow FullControl
Cancelling of the installation process shows this error

Environment
winget --info
Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22623.875
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported winget install onenote --source msstore reproduction under a non-administrative account, using the stated TMP=C:\TEMP setting and the provided ACL output. Trace the installation path that creates C:\temp\winget and downloads the installer; done means the elevated installation completes successfully after administrator credentials are entered, without the access error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100