New-WtWingetPackage
Create intunewin file from Winget installer
Downloads the installer for the package and creates an .intunewin
file for uploading in Intune.
Syntax
Default parameter set (default)
New-WtWingetPackage -PackageId <String> -PackageFolder <String> [-Version <String>] [-TempFolder <String>] [-Architecture <Architecture>] [-InstallerContext <InstallerContext>] [-PackageScript] [-Locale <String>] [-InstallerArguments <String>]
Parameter | Req. | Type | Description |
---|---|---|---|
-PackageId | ✅ | String | The package id to download |
-PackageFolder | ✅ | String | The folder to store the package in |
-Version | ❌ | String | The version to download (optional) |
-TempFolder | ❌ | String | The folder to store temporary files in |
-Architecture | ❌ | Architecture | Pick this architecture |
-InstallerContext | ❌ | InstallerContext | The installer context |
-PackageScript | ❌ | Switch | Package WinGet script, instead of the actual installer. Helpful for installers that don't really work with WinTuner. |
-Locale | ❌ | String | The desired locale, if available (eg. 'en-US') |
-InstallerArguments | ❌ | String | Override the installer arguments |
Examples
Package winget installer
Package the latest version of JanDeDobbeleer.OhMyPosh
to C:\tools\packages
. The package will be in C:\tools\packages\{packageId}\{version}
New-WtWingetPackage -PackageId JanDeDobbeleer.OhMyPosh -PackageFolder C:\Tools\Packages