Winget: works from limited user but not admin
If you are experiencing issues with the Windows Package Manager (winget) where it works fine from a limited user account but not from an admin account, there are a few potential causes and solutions to consider.
Possible Causes
There are a few reasons why you might encounter this issue:
- The PATH environment variable is not correctly set for the admin account.
- There is a conflict with other software or security settings.
- There is a problem with the user account permissions.
Solutions
1. Check PATH Environment Variable
The PATH environment variable is a list of directories that Windows searches when you run a command. If the PATH variable is not correctly set for the admin account, winget may not work as expected. To check and modify the PATH variable:
- Open the Start menu and search for "Environment Variables".
- Select "Edit the system environment variables".
- In the System Properties window, click on the "Environment Variables" button.
- In the "System Variables" section, locate the "Path" variable and click "Edit".
- Make sure the path to the winget executable (usually
C:\Windows\System32\WindowsPowerShell\v1.0\) is included. If it is not, click "New" and add it. - Click "OK" to save the changes.
2. Check for Software Conflicts
Some third-party software or security settings can interfere with the proper functioning of winget. To troubleshoot this:
- Temporarily disable any antivirus or security software running on your system.
- Try running winget from the admin account again to see if the issue persists.
- If the problem is resolved, you may need to add an exception or configure your security software to allow winget.
- If the issue persists, try performing a clean boot to eliminate any conflicts with other software. To do this:
- Open the Start menu and search for "msconfig".
- Select "System Configuration".
- In the "General" tab, select "Selective startup" and uncheck "Load startup items".
- Go to the "Services" tab, check "Hide all Microsoft services", and click "Disable all".
- Click "OK" and restart your computer.
- Try running winget from the admin account again to see if the issue is resolved.
3. Check User Account Permissions
It is possible that the admin account does not have the necessary permissions to run winget. To check and modify user account permissions:
- Open the Start menu and search for "Control Panel".
- Select "User Accounts".
- Click on "Manage another account".
- Select the admin account that is experiencing the issue.
- Click on "Change the account type".
- Ensure that the account type is set to "Administrator". If not, select "Administrator" and click "Change Account Type".
- Restart your computer and try running winget from the admin account again.
Conclusion
If winget works from a limited user account but not from an admin account, it is likely due to issues with the PATH environment variable, software conflicts, or user account permissions. By following the solutions provided, you should be able to resolve the problem and use winget seamlessly from your admin account.
| References |
|---|
| Microsoft Support: Where is winget? |
| Microsoft Docs: Windows Package Manager (winget) |