Zum Inhalt
Intune Win32 Deployer
Home » The "Intune Win32 Deployer"

The "Intune Win32 Deployer"

Der "Intune Win32 Deployer" ermöglicht es dir, Windows Package Manager (winget) und Chocolatey Installationen für Intune in eine Win32 Applikationen (intunewin) zu verwandelnd und gleich in deine MEM-Umgebung hochzuladen. Möchtest du auf den automatischen Upload verzichten, kannst du auch nur die intunewin-Dateien generieren.

Table of Contents

Übersicht und Funktionen

Mit diesem Tool kannst du sehr einfach und automatisch Programm via Intune bereitstellen. Dazu kannst du von Softwarepaketen aus dem Windows Package Manager sowie Chocolatey auswählen.

Die Funktionen zusammengefasst sind:

  • Intunewin für winget Applikationen erstellen
  • Intunewin für Chocolatey Applikationen erstellen
  • winget via Intune bereitstellen (als System)
  • Chocolatey via Intune bereitstellen
  • Programme aus dem Windows Package Manager in ein intunewin transformieren
  • Programme aus Chocolatey in ein intunewin transformieren
  • Erstelle Win32 Applikationen zu Intune hochladen
  • Pflegen einer Inventar Liste innerhalb der Application
  • Winget installieren (optional)
  • Chocolatey installieren (optional)
  • Aktuelles Microsoft Win32 Content Prep Tool herunterladen

Installation

Zur Installation lädst du einfach das komplette aktuelle GitHub Repository herunter und führst in der obersten Ebene die Datei "INSTALL_Intune-Win32-Deployer.ps1" mit PowerShell aus (Rechtsklick):

Download
Intune Win32 Deployer, Installation

Dadurch wird das Tool unter "C:\Users\%username%\AppData\Local\Intune-Win32-Deployer" und die beiden PowerShell Module "MSAL.PS" und "IntuneWin32App" im Userkontext installiert. Zudem wird im Startmenü eine Verknüpfung zum Tool erstellt, mit welcher du es anschliessend starten kannst.
Für den Teil bis hierhin benötigst du keine Administratoren-Rechte.

Weil die Daten Informationen von winget und Chocolatey während der Erstellung abgerufen werden, müssen auch diese beiden Tools installiert sein. Dazu benötigst du Administratoren-Rechte. Falls du aber entweder Chocolatey oder den Windows Package Manager nicht verwenden möchtest, kannst du diese Schritte bei der Installation überspringen.

Demo

In dieser Demo zeige ich auf folgende Abläufe auf:

  • Erster Start des "Intune Win32 Deployer"
  • Hinzufügen und Erstellen einer winget Applikation inkl. Upload zu Intune
  • Automatischer Erstellung Applikation "Windows Package Manager" als Abhängigkeit
  • Hinzufügen und Erstellen einer Chocolatey Applikation (ohne Upload)

57 Gedanken zu „The "Intune Win32 Deployer"“

  1. What the impact of the error below during installation
    Get-Content : Cannot find path 'C:\Users\shisanfa\Documents\WindowsPowerShell\Modules\IntuneWin32App\1.3.3\Public\New-I
    ntuneWin32AppDetectionRuleScript.ps1' because it does not exist.
    At C:\Users\shisanfa\Downloads\Intune-Win32-Deployer-main\INSTALL_Intune-Win32-Deployer.ps1:65 char:6
    + (Get-Content $File).Replace($oldLine,$newLine) | Set-Content $Fil ...
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (C:\Users\shisan...nRuleScript.ps1:String) [Get-Content], ItemNotFoundEx
    ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

    Unable to implement fix for detectionrule.

    1. Hello, this can happen if the module "IntuneWin32App" is already present in the system context.
      I have now added a warning about this in the installer. Please try to run the current installer again.
      If the warning should come, you must start this as Admin.

  2. Hi there. Great application! I've just encountered the following error when adding a Chocolatey App:

    Uploading: Google Chrome
    Upload completed: Google Chrome
    Processing dependency Chocolatey to Google Chrome
    Error adding dependency for Google Chrome

    The output screen is then frozen, presumably waiting for some input or response. Any advice?

    1. Hi Kym, thanks for bringing that up.
      It was a missing line in the published version. I've fixed it. Cloud you try to download and install the latest version from GitHub?

  3. Pingback: Docs | Intune Win32 Deployer | scloud

  4. Hi Florian,
    great Application. I have the following error when adding a Winget App:

    Uploading: NanaZip
    Upload completed: NanaZip
    Processing dependency Windows Package Manager to NanaZip
    WARNUNG: Request to
    https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps/b181a633-d2c5-4fb3-a29b-b39cee6ccdde/updateRelationship
    s failed with HTTP Status BadRequest and description: Bad Request
    Added dependency Windows Package Manager to NanaZip

    The output screen is frozen

      1. Hi Florian,
        I tried an other tenant. Now the Winget Package works fine, no errors anymore.
        If I try an Chocolate Package, the following error is shown:
        Uploading: Adobe AIR Runtime
        Upload completed: Adobe AIR Runtime
        Processing dependency Chocolatey to Adobe AIR Runtime
        Error adding dependency for Adobe AIR Runtime

  5. Pingback: FAQ | Intune Win32 Deployer | scloud

  6. Hi,
    now it works.
    the log first show:
    Processing Chocolatey as prerequirement Creat win32 package for Chocolatey (custom, no Package Manager)
    then: upload chocolatey Package
    then: Uploading: Adobe AIR Runtime
    Upload completed: Adobe AIR Runtime
    Processing dependency Chocolatey to Adobe AIR Runtime
    Added dependency Chocolatey to Adobe AIR Runtime
    the terminal windows not close, waiting....
    is this ok?

  7. When I try to add a Winget package, I get next error message

    Exception setting "dependency": "The property 'dependency' cannot be found on this object. Verify that the property exists and can be set."
    At C:\Users\jgonzale\AppData\Local\Intune-Win32-Deployer\Intune-Win32-Deployer.ps1:178 char:26
    + if(!$Prg.dependency){$Prg.dependency = "Windows Package Manager"}
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
    + FullyQualifiedErrorId : ExceptionWhenSetting

      1. Yes I select that option and is when get this message

        Creat win32 package for Microsoft.VisualStudioCode (Microsoft Package Manager)

        Exception setting "dependency": "The property 'dependency' cannot be found on this object. Verify that the property
        exists and can be set."
        At C:\Users\jgonzale\AppData\Local\Intune-Win32-Deployer\Intune-Win32-Deployer.ps1:178 char:26
        + if(!$Prg.dependency){$Prg.dependency = "Windows Package Manager"}
        + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
        + FullyQualifiedErrorId : ExceptionWhenSetting

          1. Hi Florian! sorry for the delay in my reply, I was busy. I just test it and now work it fine! Thank you so much for your help! And for this amazing app!

  8. Hey,
    after i clicking "Yes" on "Winget App >App< added. Do you want to create the intunewin?" i get an error in the powershell window:

    WARNING: An error occurred while attempting to retrieve or refresh access token. Error message: The property
    'Authority' cannot be found on this object. Verify that the property exists.
    WARNING: Authentication token was not found, use Connect-MSIntuneGraph before using this function

    And an Microsoft .NET Framework window opens with "Unhandeled exception has occurred in your Application..."

    "See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Management.Automation.BreakException: System error......"

    Any idea?
    MfG Kai

      1. Hey, its still not working.

        Module "IntuneWin32App" installed version: 1.3.3
        Module "MSAL.PS" installed version: 4.37.0.0

        The path of the modules is under "Users\documents\WindowsPowershell\Modules" and the modules are not shown with "get-modules". May this be the mistake?
        Regards Kai

  9. Pingback: win32 App Deployment automatisiert | scloud

  10. I think this is one of the greatest tools to man since sliced bread lol.... all works as described until the install. Then nothing happens …. which is a problem . I have all three environments (user based, device based, mix of both) and I am seeing the same issue on al three. APPS are loaded per your design....but never gets installed. Says its "installed" in the Company portal , but never makes it to the machine....multiple apps tested. All manually packaged files work fine. Look at the logs now (local machine) ….but I wanted to know if anyone else had reported this?

    1. Thanks for bringing that up.
      The problem seems to be with the Module "IntuneWin32App".
      If you ever had installed the module before my fix in the installer was not working.

      Today I updated the installer and now it should work also on your side.
      Just download the latest version and run the installer again.

      For the existing (not working) packages you can simply replace the current validation script (manual upload).

      I hope this helps and let me know if it works.

      1. So so far no go , same issue. Going to try to delete al and instal again fresh. Once again, apps package and make it to MEM...but... they never install on the machines. Agent log is showing issues with powershell script...but so far can tell which one.

  11. Thanks for publishing the insane tool!!!

    I have the same problem like Traei Walker.
    Can I change my default installation-path, so that it will always execute the installation localy?

    1. You could try to manually change line 49 under:
      "C:\Program Files\WindowsPowerShell\Modules\IntuneWin32App\1.3.3\Public\New-IntuneWin32AppDetectionRuleScript.ps1"
      or
      "....Document\WindowsPowerShell\Modules\IntuneWin32App\1.3.3\Public\New-IntuneWin32AppDetectionRuleScript.ps1"

      OLD Line: $ScriptContent = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes([System.IO.File]::ReadAllBytes("$($ScriptFile)") -join [Environment]::NewLine))
      NEW Line: $ScriptContent = [System.Convert]::ToBase64String([System.IO.File]::ReadAllBytes("$($ScriptFile)"))

  12. So first off, thanks for your reply. I looked at the ps1 script and found that I do have the updated lines of new code in the latest release, but I found no created folder under "C:\Program Files\WindowsPowerShell\Modules" at all other than the normal MS folders( ie no "\IntuneWin32App\1.3.3\Public\New-IntuneWin32AppDetectionRuleScript.ps1)"".

  13. This is such a time saver and makes it so easy! But I am getting an error -

    .\winget.exe : The term '.\winget.exe' is not recognized as the name of a cmdlet, function, script file or operable program.

    Tried reinstall, making sure to be running as admin and multiple apps. Ideas?

  14. Hi Florian,

    Thanks for sharing your tool, very impressive!

    I do seem to have some issues though - I initially had an issue with install but that seemed to fix itself, my issue now is that applications are installing but then not being detected so Intune and Company Portal think the install has failed.

    Any ideas on where to start troubleshooting this?

    Thanks, Nate

  15. Pingback: How to: winget & Intune | scloud

  16. Pingback: winget Updates | Proactive Remediations | scloud

  17. Hi Florian,

    Thanks for sharing your tool, it saves a lot of time

    from what i can see in your demo, det app installer, and the selected app will be deployed.

    that don't seems to work from my end, i get the connection to my tenant and my MFA but after that "only" the winget, and script files are present.
    the AAD groups are not created or the app is deployed in the endpoint manager portal

    got your latest version uploaded a 3 days ago: version 1.2.1

    am i missing something?

    1. Hi Tinus, thanks for letting me know. Indeed, there was an issue where the "intunewinOnly" mode was active if never used before.
      Just uploaded a fix for that to the repo, just install the newest version and the upload should be triggered again.

  18. Hey,
    first of all, thanks for all the work.
    I'm having mixed results with deployer though. For example, "SketchUp for Schools" and "Foxit PDF Reader" - both with winget - just don't want to deploy.
    Can anyone test them, if it's just me or...? Is there any way to actually troubleshoot where the problems is?

    Regards, Rok

    1. Hi Rok, unfortunately not all apps work the same.
      As I know, the "SketchUp for Schools" only works in the user context. Currently best via Windows Store for Business.

  19. Hello Florion.

    First of all, thank you for all your work... You make it easy to be me! ;).

    I have an issue when trying to deploy WINGET apps.

    WINGET is installed, and if i try to install the application with the commands in PowerShell it works fine.

    But when i try using your scripts, i get this error.
    C:\Users\USERNAME\AppData\Local\Intune-Win32-Deployer\apps-winget\Adobe.Acrobat.Reader.64-bit\install.ps1 : Winget not installed!
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,install.ps1

    Do you have any suggestions to solve this?

      1. Yes i was running it manually.

        The reason i did this was Endpoint manager will not install the app. if i try to start the installation in Company Portal, i just get the message Download pending - so i was trying to do it manually and got the posted error.

        Do you have any solution for this message Download Pending?

      2. So after a reinstall of my client, it started to deploy.

        But it all fails, i get this message The application was not detected after installation completed successfully (0x87D1041C)

  20. I added multiple apps to our company portal. This all works perfect, but when trying to install an app it remains stuck on status 'Download pending'.

    Is this a known bug? Is there a fix for this problem?

      1. I’m having the same issue…it will either “install” and then I get get a toast notification a few seconds later saying it failed (and the app page says it was no longer detected) or it hangs on the download pending. Out of 30 devices I’ve tried (deployed through Intune to co-managed and Intune only devices) it successfully installed once on a Windows 11 device and once on a freshly autopiloted Windows 10 device. When I navigate to the WindowsApps folder, I see the Microsoft.DesktopAppInstaller folder. I have tried deploying the package manager with both your deployment instructions and through your deployment tool. I also tried deploying App Installer (Offline) from the Microsoft store in the device context and that failed too though.

  21. Hi Florian!
    Great app, just wondering about the minimum role required for this to work with Intune? Intune Admin was not sufficient. Trying to keep things in RBAC and not to keen to give Global admin permissions if not absolutely neccesary.

    1. Hi Stefan, thanks. 🙂
      Totally get you, I'm working on a new authentication method and an App based authentication.
      Currently you'll need more permissions cause of the group creation/assignment.

  22. When installing the deployer on my device it is giving me an error of
    Copying / updating program files...
    Program files completed
    Creating / updating startmenu shortcut... Startmenu item completed Checking / installing Modules... Installing Module: IntuneWin32App PackageManagement\Install-Package : Access to the cloud file is denied
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
    + ... $null = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exce
    ption
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand,Mic
    rosoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

    Any ideas on what this could be. I was able to install this on my home PC and it worked like a charm.

  23. Hey there!
    Awesome tool, very well thought.
    I'd like to ask though, is it possible to select winget app version like below when deploying package to Intune?

    winget install -e --id Zoom.Zoom -v 5.11.6602

    Thanks and great job,
    Dan

  24. Pingback: Meine top 5 Intune Community Tools | scloud

Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.