Skip to main content

Deploy-WtWin32App

Create a Win32Lob app in Intune

Use this command to upload an intunewin package to Microsoft Intune as a new Win32LobApp.\r\n\r\nThis is an authenticated command, so call Connect-WtWinTuner before calling this command.

Syntax

WinGet (default)

Deploy an app packaged by WinTuner. If you used the New-WtWingetPackage commandlet to create the package, there will be some metadata available to us that is needed to create the Win32App in Intune.

Deploy-WtWin32App -PackageId <String> -Version <String> -RootPackageFolder <String> [-Categories <String[]>] [-AvailableFor <String[]>] [-RequiredFor <String[]>] [-UninstallFor <String[]>] [-GraphId <String>] [-OverrideAppName <String>]
ParameterReq.TypeDescription
-PackageIdStringThe package id to upload to Intune.
-VersionStringThe version to upload to Intune
-RootPackageFolderStringThe Root folder where all the package live in.
-CategoriesString[]Categories to add to the app
-AvailableForString[]Groups that the app should available for, Group Object ID or AllUsers / AllDevices
-RequiredForString[]Groups that the app is required for, Group Object ID or AllUsers / AllDevices
-UninstallForString[]Groups that the app should be uninstalled for, Group Object ID or AllUsers / AllDevices
-GraphIdStringGraph ID of the app to supersede
-OverrideAppNameStringOverride the name of the app in Intune

Win32LobApp

Deploy an application, by specifying all the needed properties of the Win32LobApp and an IntuneWinFile.

Deploy-WtWin32App -App <Win32LobApp> -IntuneWinFile <String> [-LogoPath <String>] [-Categories <String[]>] [-AvailableFor <String[]>] [-RequiredFor <String[]>] [-UninstallFor <String[]>] [-GraphId <String>] [-OverrideAppName <String>]
ParameterReq.TypeDescription
-AppWin32LobAppThe App configuration you want to create
-IntuneWinFileStringThe .intunewin file that should be added to this app
-LogoPathStringLoad the logo from file
-CategoriesString[]Categories to add to the app
-AvailableForString[]Groups that the app should available for, Group Object ID or AllUsers / AllDevices
-RequiredForString[]Groups that the app is required for, Group Object ID or AllUsers / AllDevices
-UninstallForString[]Groups that the app should be uninstalled for, Group Object ID or AllUsers / AllDevices
-GraphIdStringGraph ID of the app to supersede
-OverrideAppNameStringOverride the name of the app in Intune

PackageFolder

Deploy a pre-packaged application, from just it's folder

Deploy-WtWin32App -PackageFolder <String> [-Categories <String[]>] [-AvailableFor <String[]>] [-RequiredFor <String[]>] [-UninstallFor <String[]>] [-GraphId <String>] [-OverrideAppName <String>]
ParameterReq.TypeDescription
-PackageFolderStringThe folder where the package is
-CategoriesString[]Categories to add to the app
-AvailableForString[]Groups that the app should available for, Group Object ID or AllUsers / AllDevices
-RequiredForString[]Groups that the app is required for, Group Object ID or AllUsers / AllDevices
-UninstallForString[]Groups that the app should be uninstalled for, Group Object ID or AllUsers / AllDevices
-GraphIdStringGraph ID of the app to supersede
-OverrideAppNameStringOverride the name of the app in Intune

Examples

Deploy OhMyPosh

OhMyPosh v19.5.0 is packaged to this folder, now deploy it to Azure

Deploy-WtWin32App -PackageFolder "C:\Tools\packages\JanDeDobbeleer.OhMyPosh\19.5.2"

Package and deploy OhMyPosh

Combining both the New-WtWinGetPackage and the Deploy-WtWin32App command, and making it available to All Users

New-WtWingetPackage -PackageId JanDeDobbeleer.OhMyPosh -PackageFolder C:\Tools\Packages | Deploy-WtWin32App -Available AllUsers