Skip to main content

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>]
ParameterReq.TypeDescription
-PackageIdStringThe package id to download
-PackageFolderStringThe folder to store the package in
-VersionStringThe version to download (optional)
-TempFolderStringThe folder to store temporary files in
-ArchitectureArchitecturePick this architecture
-InstallerContextInstallerContextThe installer context
-PackageScriptSwitchPackage WinGet script, instead of the actual installer. Helpful for installers that don't really work with WinTuner.
-LocaleStringThe desired locale, if available (eg. 'en-US')
-InstallerArgumentsStringOverride 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