To install an app for every user on a PC with winget, add --scope machine to the command. Without it, winget lets the installer decide, and some apps end up installed only for the person who ran it.
winget install --id 7zip.7zip -e --scope machineWindows asks for administrator permission, because an install for everyone goes into Program Files, which a standard user can't change.
Install for all users
- Right-click the Start button, and choose Terminal (Admin). In Windows 10, choose Windows PowerShell (Admin).
- Find the app's ID, if you don't know it:
winget search vlc- Install it for everyone, using the ID from the list:
winget install --id VideoLAN.VLC -e --scope machineThe -e means "exact match", so you get exactly that app and nothing with a similar name.
Install for just the current user
The opposite is --scope user. The app goes into that person's own profile, and nobody else who signs in to the PC sees it. It doesn't need administrator permission.
winget install --id Spotify.Spotify -e --scope userWhen winget says no package was found
Not every app can be installed both ways. If winget replies that no applicable installer was found, or that no package matched, the app's publisher only provides the other kind of installer.
- Check what the app offers:
winget show --id Spotify.Spotify- Run the install again without
--scope, and winget uses whatever installer exists. - If the same app is in the Microsoft Store, that version is another option. Store apps are added per person as each one signs in.
A few apps, Spotify among them, are per-user only, and refuse to install from an administrator window at all. Install those from a normal Terminal window, signed in as the person who needs them.
Make it the default
If you always want installs for everyone, set it once in winget's settings file.
- In Terminal, run:
winget settings- The settings file opens in Notepad. Add the
installBehaviorsection inside the outer curly brackets, so the file looks like this:
{
"$schema": "https://aka.ms/winget-settings.schema.json",
"installBehavior": {
"preferences": {
"scope": "machine"
}
}
}- Save the file, and close it.
Because it's a preference, winget uses the all-users installer when there is one, and falls back to the per-user one when there isn't. Change preferences to requirements if you would rather it stopped with an error instead.
Questions
What's the difference between user scope and machine scope?
User scope installs the app into one person's profile. Machine scope installs it into Program Files, with Start menu shortcuts for everyone who uses the PC.
Does –scope machine need administrator rights?
Yes. Run Terminal as administrator, or approve the prompt Windows shows during the install.
Can I move an app from one user to all users?
Not directly. Uninstall it with winget uninstall --id followed by the app's ID, then install it again with --scope machine.
How do I update apps that were installed for all users?
Open Terminal as administrator, and run winget upgrade --all. From a standard window, the updates that need permission each ask for it in turn.
More guides: install lots of apps at once with winget, uninstall multiple programs at once, and Windows 11 settings to change.