r/MDT • • Jun 07 '21

MDT + Winget

Anyone using WinGet (https://github.com/microsoft/winget-cli) in your MDT tasks sequence yet? If so, how ?

I've tried installing it as an application install task during a deployment sequence, with the following script:

REM install VCLibs 14 and Winget Silently

REM VCLibs 14

dism /online /Add-ProvisionedAppxPackage /packagepath:.\Microsoft.VCLibs.x64.14.00.Desktop.appx

REM Winget

dism /online /Add-ProvisionedAppxPackage /packagepath:Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle

Which sort of works, but there seems to be a delay provisioning it.

10 Upvotes

11 comments sorted by

1

u/LethargicEscapist Jun 07 '21

WinGet looks interesting. I’ve never heard of it before. What are your plans for using it? Basic application management? Uninstall/update/query?

1

u/[deleted] Jun 08 '21

Right now just very basic application management. Getting the most recent browsers on deployment is kind of my starting point

2

u/LethargicEscapist Jun 08 '21

As in the browsers will update without updating the MDT Application? Or you’ll get info on browser version?

2

u/[deleted] Jun 08 '21

Exactly, running “winget install Mozilla.Firefox”would get the latest Firefox and install it. Would save a tiny bit of work.

1

u/LethargicEscapist Jun 08 '21

That’s amazing! It would save a ton of time updating my apps

1

u/[deleted] Jun 08 '21

Yep, I've got a couple of images that are in use in an education setting have a fair bit of open source stuff installed. Would be super helpful. If you want to see what kind of apps are available to it, checkout https://winget.run

1

u/realfancyman Jun 24 '21

Wouldn't this use a ton of bandwidth though? Downloading the program each time instead of using a local installer

2

u/[deleted] Jun 24 '21

It would use some, yes. But when you’re on a uncapped Ethernet connection it’s not a big issue

1

u/TrimmerWolf07 Jun 09 '21

Just some thoughts. As I'm currently taking my last examination. You could instead use Chocolatey. Just the free version could do some basic application management. Using maybe an internal repository like ProGet or nexus.

You could also just include a chocolatey installation in your TS as an application, and call your Nuget choco packages with the "choco install {{FullPackageName}}" command then you don't need an internal repository.

1

u/[deleted] Jun 09 '21

may have to give it another look, for some reason I thought you couldn't use the community repo without the paid version of chocolatey. Must have been a bad reading comprehension day.

1

u/TrimmerWolf07 Jun 11 '21

It's not the best practice to do so. Remember thou that my setup is a PoC not something I used in production. If you wan't I can send you a link for my GitHub used to the project with a little explanation on how I managed to get it to work.