Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows11 System context deployment via Intune (MEM) #2541

Open
Matt-C22 opened this issue Sep 22, 2022 · 3 comments
Open

Windows11 System context deployment via Intune (MEM) #2541

Matt-C22 opened this issue Sep 22, 2022 · 3 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@Matt-C22
Copy link

Brief description of your issue

When trying to deploy winget via DISM (cmdlet below) it works, however when trying to run via System (psexec even) it doesn't return recognize the executable (no list of commands returned) when launching from the following path:
$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"

winget system context install (works with v1.3.2091) on both W10 & W11:
DISM.exe /online /Add-ProvisionedAppxPackage /PackagePath:"\..\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" /SkipLicense

I'm well aware that the normal installation of WinGet on W11 is located under the %LocalAppData% for the user. How are we supposed to deliver winget packages via System context over Intune?

Steps to reproduce

  1. Launch cmd.exe using and then switch to powershell
    psexec.exe -s -i cmd.exe
  2. Install release using DISM
    DISM.exe /online /Add-ProvisionedAppxPackage /PackagePath:"\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" /SkipLicense
  3. Browse to the WinGet system path :
    $ResolveWingetPath = Resolve-Path "$env:ProgramFiles\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe"
    $WingetPath = $ResolveWingetPath[-1].Path
  4. Change directory using cd $wingetpath
  5. Try running .\winget.exe
  6. It wouldn't return anything as if the executable is broken. (Works perfectly fine for W10)

Expected behavior

Return the list of commands along with the summary about Winget CLI

Actual behavior

Returns nothing and System installs are broken.

Environment

Windows: Windows.Desktop v10.0.22000.978
System Architecture: X64
@ghost ghost added the Needs-Triage Issue need to be triaged label Sep 22, 2022
@Trenly
Copy link
Contributor

Trenly commented Sep 22, 2022

@Matt-C22
Copy link
Author

Thanks @Trenly for dropping those. I've been through them actually during the past weeks, however I mentioned that it does work for W10 using System account by browsing to the %ProgramFiles% install path of winget, that gets added via DISM, since Add-AppxPackage is not available.

On W11 the executable simply doesn't budge when it's launched. It's not about winget not getting recognized in the system context as it does in the user one thanks to the PATH variable.

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Sep 22, 2022
@denelon denelon added this to WinGet Feb 14, 2023
@denelon denelon added this to the v1.5-Client milestone Feb 14, 2023
@denelon denelon modified the milestones: v1.5-Client, v.Next-Client Apr 18, 2023
@denelon denelon removed this from WinGet Jun 13, 2023
@denelon denelon removed this from the v.Next-Client milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants