The request
Some apps only function correctly if installed in user context, if you try and deploy these using winget-install.ps1, via Intune for example, you run into issues. You can get Intune to run winget-install.ps1 in the logged-in user context however this causes problems e.g.
- Visible powershell window while the installer runs
- Unable to update the log file
- Unable to add apps to the whitelist
- etc.
Could user-scope installs be handled in winget-install.ps1 similar to how the updater handles it? Allowing winget-install.ps1 to be called from system context with an additional parameter to run the actual install as user and hidden, maintaining ability to update logs and lists.
Is your feature request related to a problem?
Additional information
Here is an example of the visible PS window when running from MDM as user:

The request
Some apps only function correctly if installed in user context, if you try and deploy these using
winget-install.ps1, via Intune for example, you run into issues. You can get Intune to runwinget-install.ps1in the logged-in user context however this causes problems e.g.Could user-scope installs be handled in
winget-install.ps1similar to how the updater handles it? Allowingwinget-install.ps1to be called from system context with an additional parameter to run the actual install as user and hidden, maintaining ability to update logs and lists.Is your feature request related to a problem?
Additional information
Here is an example of the visible PS window when running from MDM as user:
