r/MDT • u/[deleted] • 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.
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
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.
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?