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[]>] [-RoleScopeTags <String[]>] [-GraphId <String>] [-KeepAssignments] [-OverrideAppName <String>]
| Parameter | Req. | Type | Description | 
|---|---|---|---|
| -PackageId | ✅ | String | The package id to upload to Intune. | 
| -Version | ✅ | String | The version to upload to Intune | 
| -RootPackageFolder | ✅ | String | The Root folder where all the package live in. | 
| -Categories | ❌ | String[] | Categories to add to the app | 
| -AvailableFor | ❌ | String[] | Groups that the app should available for, Group Object ID or AllUsers/AllDevices | 
| -RequiredFor | ❌ | String[] | Groups that the app is required for, Group Object ID or AllUsers/AllDevices | 
| -UninstallFor | ❌ | String[] | Groups that the app should be uninstalled for, Group Object ID or AllUsers/AllDevices | 
| -RoleScopeTags | ❌ | String[] | The role scope tags for this app | 
| -GraphId | ❌ | String | Graph ID of the app to supersede | 
| -KeepAssignments | ❌ | Switch | Keep assignments on app that is superseded | 
| -OverrideAppName | ❌ | String | Override 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[]>] [-RoleScopeTags <String[]>] [-GraphId <String>] [-KeepAssignments] [-OverrideAppName <String>]
| Parameter | Req. | Type | Description | 
|---|---|---|---|
| -App | ✅ | Win32LobApp | The App configuration you want to create | 
| -IntuneWinFile | ✅ | String | The .intunewin file that should be added to this app | 
| -LogoPath | ❌ | String | Load the logo from file | 
| -Categories | ❌ | String[] | Categories to add to the app | 
| -AvailableFor | ❌ | String[] | Groups that the app should available for, Group Object ID or AllUsers/AllDevices | 
| -RequiredFor | ❌ | String[] | Groups that the app is required for, Group Object ID or AllUsers/AllDevices | 
| -UninstallFor | ❌ | String[] | Groups that the app should be uninstalled for, Group Object ID or AllUsers/AllDevices | 
| -RoleScopeTags | ❌ | String[] | The role scope tags for this app | 
| -GraphId | ❌ | String | Graph ID of the app to supersede | 
| -KeepAssignments | ❌ | Switch | Keep assignments on app that is superseded | 
| -OverrideAppName | ❌ | String | Override 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[]>] [-RoleScopeTags <String[]>] [-GraphId <String>] [-KeepAssignments] [-OverrideAppName <String>]
| Parameter | Req. | Type | Description | 
|---|---|---|---|
| -PackageFolder | ✅ | String | The folder where the package is | 
| -Categories | ❌ | String[] | Categories to add to the app | 
| -AvailableFor | ❌ | String[] | Groups that the app should available for, Group Object ID or AllUsers/AllDevices | 
| -RequiredFor | ❌ | String[] | Groups that the app is required for, Group Object ID or AllUsers/AllDevices | 
| -UninstallFor | ❌ | String[] | Groups that the app should be uninstalled for, Group Object ID or AllUsers/AllDevices | 
| -RoleScopeTags | ❌ | String[] | The role scope tags for this app | 
| -GraphId | ❌ | String | Graph ID of the app to supersede | 
| -KeepAssignments | ❌ | Switch | Keep assignments on app that is superseded | 
| -OverrideAppName | ❌ | String | Override 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