3

First of all, WSA is not available on Microsoft Store in my region. I searched online and performed the following steps:

  1. Download the latest .msix bundle from https://store.rg-adguard.net/
  2. Confirm MicrosoftCorporationII.WindowsSubsystemForAndroid_2305.40000.6.0_neutral_~_8wekyb3d8bbwe.Msixbundle is successfully downloaded (referred as wsa.msixbundle in this question)
  3. Double click wsa.msixbundle. It prompts me to install WSA.
  4. Click on "install" button (note there is a badge administrator icon on the left of the label)
  5. UAC prompt appears, entered admin password correctly
  6. Error: it says package installation failed, requires administrator and tells me to install via PowerShell's Add-AppxPackage cmdlet.
  7. Open administrator PowerShell using Win + x A
  8. Run Add-AppxPackage C:\Users\[username]\Downloads\wsa.msixbundle
  9. Install succeeded (no error messages)
  10. I can confirm WSA is now available for administrator, but not my regular user account

How to install WSA on Windows 11 for regular accounts or all accounts, like my own user account? I don't want to use administrator account all the time for several reasons.

sudoer
  • 51

1 Answers1

0

Add-AppxPackage only adds the package for the current user. To install for all users, follow these steps:

  • Running as Administrator, provision the package for all users (newly created users will get it automatically):
Add-AppxProvisionedPackage -PackagePath "c:\folder\wsa.msixbundle"
  • Running as target user, register the package by manifest:
$Manifest = Get-AppxProvisionedPackage -Online | 
  Where-Object -Property DisplayName -EQ $Name  | 
  Select-Object -ExpandProperty InstallLocation
Add-AppxPackage -Path $Manifest -Register
Cpt.Whale
  • 10,914