-
Notifications
You must be signed in to change notification settings - Fork 1.8k
System Context #3049
Copy link
Copy link
Open
Labels
Context-SystemRelated to system context (nt authority/session 0)Related to system context (nt authority/session 0)Issue-DocsIt's a documentation issue that really should be on MicrosoftDocsIt's a documentation issue that really should be on MicrosoftDocsIssue-FeatureThis is a feature request for the Windows Package Manager client.This is a feature request for the Windows Package Manager client.Needs-Author-FeedbackIssue needs attention from issue or PR authorIssue needs attention from issue or PR authorPowerShellIssue related to WinGet PowerShell Module or cmdletIssue related to WinGet PowerShell Module or cmdlet
Description
Metadata
Metadata
Assignees
Labels
Context-SystemRelated to system context (nt authority/session 0)Related to system context (nt authority/session 0)Issue-DocsIt's a documentation issue that really should be on MicrosoftDocsIt's a documentation issue that really should be on MicrosoftDocsIssue-FeatureThis is a feature request for the Windows Package Manager client.This is a feature request for the Windows Package Manager client.Needs-Author-FeedbackIssue needs attention from issue or PR authorIssue needs attention from issue or PR authorPowerShellIssue related to WinGet PowerShell Module or cmdletIssue related to WinGet PowerShell Module or cmdlet
Type
Fields
Give feedbackNo fields configured for Feature.
Description of the new feature / enhancement
This really shouldn't be moved to a discussion.
Not having the option to run winget in the System Context will essentially stop most organisations using winget. Zero Trust is a framework that more and more organisations will be adopting. Local admin rights is a dinosaur.
Some interesting stats with the winget-pkgs manifests, doing a search of InstallerType across the git repo show that msix is really a small component of what people are installing with the winget tool.
11940 results in 11134 files InstallerType: nullsoft (exe)
6318 results in 4855 files InstallerType: wix (msi)
5931 results in 5387 files InstallerType: inno
5664 results in 3754 files InstallerType: exe
2713 results in 1974 files InstallerType: msi
1004 results in 637 files InstallerType: burn (exe)
811 results in 688 files InstallerType: portable
448 results in 290 files InstallerType: msix
225 results in 217 files InstallerType: zip
Proposed technical implementation details
It's possible to run winget in the system context already, the sample code is below.
All I'm asking is for the winget-cli development team to recognise this, ensure this is a support method of running it, by simply taking this use case into consideration when developing winget further to ensure this type of usage does not break anything.
Possibly even ensure the system context executable is added to the machine PATH environment variable.