Don’t miss Amazon Black Friday See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Install WSL for All Users on a Windows PC, Step by Step

Installing Windows Subsystem for Linux (WSL) for everyone means enabling its Windows components on the machine, so each Windows account can use WSL. One important distinction: enabling WSL is a machine-wide setup, but Linux distributions and their files are normally registered separately for each user. You will need an administrator account for the machine-wide steps, then each person can install or be provisioned with their own Linux distribution.

The steps below cover current Windows 11 and supported Windows 10 systems. If the computer is managed by an organization, check its software and virtualization policies before making changes.

What You’ll Need

  • A Windows 11 computer, or Windows 10 version 2004 (build 19041) or later with the required updates. If you are unsure, press Windows key + R, enter winver, and check the version and OS build.
  • An administrator account and permission to restart the computer. The WSL platform features must be enabled from an elevated terminal.
  • Hardware virtualization enabled in the computer’s firmware for WSL 2. Most modern computers support it; a work or school device may have virtualization restricted by policy.
  • An internet connection if you are downloading WSL updates or Linux distributions. Allow enough disk space for a separate distro installation and Linux files for every user who needs one.

Step-by-Step

  1. Decide what “for all users” means for your setup. The Windows components that make WSL available can be enabled for the whole machine. A distribution such as Ubuntu, including its Linux accounts, installed packages, and files, is generally associated with the Windows account that installed it. Do not expect an Ubuntu installation made by an administrator to appear automatically in another person’s WSL list. Plan for each Windows user to install a distro, or arrange to provision a separate distro for each account.
  2. Check the Windows version and virtualization setting. Run winver and make sure the system meets the version requirements. To check whether virtualization is active in Windows, open Task Manager, choose Performance, then CPU, and look for Virtualization: Enabled. If it says disabled, restart into UEFI or BIOS and enable the relevant setting, often named Intel Virtualization Technology (VT-x) or AMD-V/SVM. Firmware menus differ by manufacturer; follow the device maker’s instructions. On a virtual machine, the host administrator may need to expose nested virtualization.
  3. Open an elevated terminal. Right-click Start and choose Terminal (Admin) or Windows PowerShell (Admin), then approve the User Account Control prompt. The administrator elevation matters: a standard user’s terminal can install a distro for that user, but it cannot enable Windows optional features for the entire machine.
  4. Install the WSL platform without choosing a distro for the admin account. In the elevated terminal, run wsl --install --no-distribution. This installs or enables the WSL components without automatically installing a Linux distribution for the administrator. If the command reports that WSL is already installed, continue to the status check rather than trying to remove and reinstall it. On Windows versions where this option is unavailable, use the manual feature steps in the next step.
  5. If needed, enable the Windows features manually. In the same elevated terminal, run these commands one at a time: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart and dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart. The first enables WSL support; the second is required for WSL 2. Wait for each DISM command to finish and confirm it completed successfully. If DISM reports that a feature name is unknown, verify the Windows version and build before proceeding.
  6. Restart Windows. Restart after the installer or DISM enables features, even if you are not prompted immediately. The optional components may not be active until Windows has restarted. Save open work first; do not treat closing the terminal or signing out as a substitute for a restart.
  7. Check WSL and update it if appropriate. After restarting, open Terminal as an administrator and run wsl --status. On systems with the newer WSL package, you can also run wsl --version and, if an update is available, wsl --update. Older inbox versions of WSL may not recognize --version; that alone does not mean WSL is broken. If wsl --status shows WSL 1 as the default and you intend to use WSL 2, set the default with wsl --set-default-version 2. This default affects new distro installations; it does not convert an existing distro.
  8. Test distro installation in a regular user account. Sign in as one of the people who will use WSL, open a normal Terminal window, and run wsl --list --online to see available distributions. Then install one, for example with wsl --install -d Ubuntu. Use a distribution name shown by the online list if you prefer another option. If Windows asks for a restart, restart; otherwise launch the distro from the Start menu or by running wsl.
  9. Complete the first-run setup for that user. The first launch unpacks the distribution and asks the user to create a Linux username and password. These are Linux credentials for that distro, not the person’s Windows password. Repeat the distro installation and first-run setup while signed in to each Windows account that needs Linux. Each user should verify their own installation with wsl --list --verbose; the distro list is scoped to the signed-in Windows user.
  10. Document the arrangement for other users. Tell users which distribution to install, how to open it, and where their Linux files are stored. If the device is managed, have IT deploy or update WSL according to its software policy. A distro installed by a deployment script should run in the intended user’s context; installing it once under an administrator account does not register it for everyone else.

Common Mistakes

Assuming the distro is shared because WSL is enabled. This is the most common misunderstanding. Enabling Windows features makes the platform available machine-wide, but another account usually will not see the administrator’s Ubuntu installation. Install or provision a separate distro under each user’s account.

Running the feature setup without elevation. If Windows reports access denied or says administrative privileges are required, close that terminal and reopen it using Run as administrator. Do not repeatedly run the same command from a standard user session.

Skipping the restart. WSL commands can behave as if components are missing until after a restart. Complete the restart before diagnosing a failed distro install.

Expecting an existing distro to switch automatically to WSL 2. wsl --set-default-version 2 only sets the default for future installations. To convert a registered distro for the current user, use wsl --set-version Ubuntu 2, replacing the name with the exact value from wsl --list --verbose. Converting can take time and should not be interrupted.

Sharing one distro’s files between accounts. Do not point multiple users at the same live virtual disk or copy a distro’s internal app data folder as a shortcut to sharing it. That can cause registration, permission, or data-integrity problems. Treat each account’s distro as its own Linux environment.

Tips

For a simple household or small team, let each user install the same distro using the same command, then let each person create their own Linux username. The distro version can be consistent while the users’ files and Linux accounts remain separate. Agree on a backup method, because a Windows profile backup may not automatically include or reliably restore every WSL data file.

For a managed fleet, separate platform deployment from distro provisioning. IT can enable WSL and virtualization prerequisites centrally, then use a supported deployment tool or a sign-in script running as each target user to install the required distro. Test the process with a standard account first. Confirm whether Microsoft Store access, distro installation, and WSL updates are permitted by organizational policy; an administrator may need to provide an approved offline or managed deployment route.

If you need consistent starter environments, an administrator can prepare a Linux filesystem archive and use wsl --import in each user’s context to register a distro at a location that user can access. Each import creates a separate registration and should use its own storage location and data. This is a provisioning approach, not a way to make one shared, concurrently used distro. Test backup, updates, default-user setup, and permissions before rolling it out.

Keep Linux project files inside the Linux filesystem, such as the user’s home directory, for Linux tools that rely on Linux file permissions and performance. Windows files remain accessible under paths such as /mnt/c/Users/Name, but frequently building a project across the Windows/Linux filesystem boundary can be slower. Explain this distinction to users when setting up development workflows.

Troubleshooting

wsl --install or --no-distribution is not recognized: Check the Windows build with winver, install current Windows updates, and retry in an elevated terminal. If the command option is not supported on that build, enable the two features with the DISM commands above, restart, then install or update WSL using the method available for that Windows release. On older systems, the Microsoft Store or a managed package may be needed to obtain the current WSL release.

The distro says WSL 2 requires an update or a kernel component: Run wsl --update in an elevated terminal if supported, then restart. If the machine cannot reach the update service, check proxy and firewall rules or ask IT for the organization’s approved update procedure. Also make sure Virtual Machine Platform is enabled and virtualization is active in firmware or exposed by the host virtual machine.

You see “The virtual machine could not be started” or a virtualization error: Confirm firmware virtualization is enabled, restart Windows, and check that the Virtual Machine Platform feature is enabled. On a managed computer, security configuration or another hypervisor setting may be involved; contact the administrator rather than changing organization-wide security settings yourself.

Another user cannot see the distro you installed: Sign in to that user’s Windows account and run wsl --list --verbose. If the list is empty, install the distro while signed in as that user or arrange user-context provisioning. This is expected behavior and does not indicate that the machine-wide WSL installation failed.

The install hangs, fails to download, or returns a Store error: Check the internet connection, Windows Update status, available disk space, and access to Microsoft Store or the distro download source. Restart and retry once. On a managed device, ask IT whether Store apps or Linux distributions are blocked. Capture the exact error text and the output of wsl --status when requesting support.

Frequently Asked Questions

Can I install one Ubuntu distro that every Windows user shares?
Not as a normal shared WSL installation. A distro is registered to a Windows user and contains that user’s Linux environment. Give each person a separate installation, or use a carefully managed provisioning process to create an individual distro for each account.

Do all users need administrator rights to use WSL?
No. An administrator must enable the machine-level WSL features, but users can generally install and run a distro from their own accounts afterward. Organization policies can restrict this, and some installation or update methods may require IT assistance.

Does installing WSL for everyone install Ubuntu for everyone?
No. The platform setup and the distro setup are separate. Installing WSL with --no-distribution prepares the Windows machine without selecting a distro; each user then installs their chosen distro in their own account.

Should every user choose WSL 2?
WSL 2 is the usual choice for modern development because it runs a real Linux kernel in a lightweight virtualized environment. It requires virtualization support. WSL 1 may suit some compatibility needs or constrained hardware, so choose based on the workload and device policy.

Where are each user’s Linux files kept?
WSL stores distro data in locations associated with the Windows user, often within that user’s profile unless an import location was specified. Use WSL commands or documented export/import procedures to manage distro data; avoid editing or moving its internal virtual disk while WSL is running.

Will enabling WSL change existing Windows accounts?
It enables Windows functionality but does not create Linux accounts for those users or change their Windows passwords. Each person creates a Linux username and password when first launching their own distribution.

Install WSL for All Users on a Windows PC, Step by Step
Scroll to top