Ein Win32 App beziehungsweise ".intunewin" File für zu erstellen ist ganz einfach.
Der schwierigste Teil eines jeden Pakets ist die Installations Logik selbst. Diese kannst du beispielsweise in einem PowerShell Script oder CMD File abhandeln. Ich persönlich bevorzuge den Weg via PowerShell und nenne die Installationsdate jeweils "install.ps1".
Eine Erklärung zum Aufbau findest du hier: my take on win32 apps - Intune
Hast du deine Routine erstellt gehst du wie folgt vor:
- Lade dir das aktuelle Microsoft Win32 Content Prep Tool herunter
- Öffne die heruntergeladene "IntuneWinAppUtil.exe"
- Gib den Pfad zu deinem Paket an
- Gib die Installationsdatei an, bei mir jeweils: install.ps1
- Gib den Pfad zur Ablage des .intunewin Files an
- Falls an diesem bereits eine Datei mit dem entsprechenden Namen liegt, kannst du es löschen / überschreiben
- Bei der Catalog Folder frage wählen wir Nein (N)
- Fertig, das war das Erstellen der Win32 App / "intunewin".

Ist das Paket erstellt, kannst du es im Endpoint Manager / Intune unter «Apps > Windows apps» hinzufügen.
Die Parameter innerhalb der Apps sind dann je nach Applikation unterschiedlich.
Als Installations- und Deinstallations-Befehlt kannst du in den meisten Fällen folgende verwenden:
install command | %SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -executionpolicy bypass -command .\install.ps1 |
uninstall command | %SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -executionpolicy bypass -command .\uninstall.ps1 |
Pingback: Excel Standard-Vorlage mit Intune | scloud
Pingback: "Proactive Remediation for Business" | scloud
Pingback: Worksheet Crafter mit Intune installieren | scloud
Pingback: chocolatey - Grundinstallation mit Intune | scloud
Pingback: My take on Intune Win32 apps | scloud
Pingback: How to: winget & Intune | scloud
Your install and uninstall commands include %SystemRoot%\sysnative in the path to powershell. I've never seen a folder 'sysnative' before?
That folder is invisible and used to call PowerShell in x64-bit mode.
For the custom detection rules should we use the check.ps1?
This depends on the app you'd like to install. You can either use a manual rule for simple validation, or a script like I use in a lot of packages.
Here are some examples: https://scloud.work/custom-detection-script-intune-win32/