Jump to content

Recommended Posts

Posted

Hello,

 

I'm hoping somoene can help please.

 

I've been trying to use WinGet to install some store apps until our Microsoft Store/Intune integration is working.

 

The version of WinGet that I am using is 1.8.1911.

 

I am installing WinGet via the Store package msixbundle, as I couldn't get another way for it to work.

Is this method correct?

 

This works fine for the current logged in user, but any other user that is trying to use WinGet then gets the error that the system couldn't find WinGet.

According to the troubleshooting page, I've managed to fix it by reregistering the app for that user, but do I have to do this for every user on our network devices?

 

Any help would be much appreciated please.

 

Thanks

Posted

As far as I am aware, a user must have opened the MS store to "initialize" Winget. It's hit and miss.. you can manually install the ms store app " App Installer ", which is Winget.

 

If you check here you can manually install Winget with powershell : Use the WinGet tool to install and manage applications | Microsoft Learn - which from reading your post again sounds like you have already done.

 

Winget is per user & i'm not sure if it will run as system either, as above post says.

 

You could try a login script which registers Winget for each user?

Posted

Thanks both.

How do other schools/colleges use WinGet when they have the store disabled please?

 

We used to get the store apps via sccm directly from Microsoft store for education, but that has kind of died for us now.

Our implementation of Co-Management with Intune is not working very well either yet, with issues I just can't find a solution for.

 

So currently I'm giving WinGet a try, but this seems to be a bit of a hit and miss atm.

Posted

I used this guide when setting up deploying Winget apps via Intune as System, and it's been working great for me:

 

https://scloud.work/how-to-winget-intune/

 

There is also a guide at the start for packaging up Winget itself, but i've not used that as we're using Windows 11 which has it already installed. We do use a script to manually install Winget during Autopilot enrolment if it's older than a certain version though, as at some point they changed the CDN that Winget pointed to, so older versions had issues installing anything until updated.

  • Thanks 1
Posted
Thanks both.

How do other schools/colleges use WinGet when they have the store disabled please?

 

We used to get the store apps via sccm directly from Microsoft store for education, but that has kind of died for us now.

Our implementation of Co-Management with Intune is not working very well either yet, with issues I just can't find a solution for.

 

So currently I'm giving WinGet a try, but this seems to be a bit of a hit and miss atm.

 

You can deploy store apps through the company portal with Intune if you are blocking the Microsoft Store.

Posted
As far as I am aware, a user must have opened the MS store to "initialize" Winget. It's hit and miss.. you can manually install the ms store app " App Installer ", which is Winget.

 

If you check here you can manually install Winget with powershell : Use the WinGet tool to install and manage applications | Microsoft Learn - which from reading your post again sounds like you have already done.

 

Winget is per user & i'm not sure if it will run as system either, as above post says.

 

You could try a login script which registers Winget for each user?

 

Thanks.

I've managed to get Winget working as SYSTEM user for some store apps that install for all users.

Just the per-user is giving me some grief.

 

- - - Updated - - -

 

You can deploy store apps through the company portal with Intune if you are blocking the Microsoft Store.

 

Thanks, that's one of my problems though. Our sccm co-management integration isn't working and so far all attempts at fixing that, have failed.

Posted

Does anyone have any further help please?

 

As a test I've reimaged a new laptop with Windows 10 Education 22H2.

When I log in as a local admin, open up powershell I can access winget then.

 

However, when I log out and log in as a staff user, this then fails and it says that winget.exe is not recognised.

I've tried the suggestion from their troubleshooting page to register the appx again, but this does not seem to fix it.

I don't see any errors in Event Viewer either.

 

Does the store need to be enabled for winget to work?

Posted
Does anyone have any further help please?

 

As a test I've reimaged a new laptop with Windows 10 Education 22H2.

When I log in as a local admin, open up powershell I can access winget then.

 

However, when I log out and log in as a staff user, this then fails and it says that winget.exe is not recognised.

I've tried the suggestion from their troubleshooting page to register the appx again, but this does not seem to fix it.

I don't see any errors in Event Viewer either.

 

Does the store need to be enabled for winget to work?

Do you block the store completely? If you use applocker it may be worth allowing the "app installer" app

 

You can install winget directly from github, just download & run the .msix - You may be able to deploy this way per user

: https://github.com/microsoft/winget-cli/releases/tag/v1.8.1911

Posted

No not completely, just disabled in GPO.

 

When I run get-appxpackage to check for the winget app, I can see it installed for the user but when I try and call it by winget.exe in powershell or CMD, it throws the error as it doesn't recognise it.

 

I'm a bit lost now tbh as I seem to get so odd results.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...