Deploying Apps Using Intune

Earn 25 points (50 with Pro) in two steps

  1. ① Read through the lesson — each section gets a ✓ as you scroll through it.
  2. ② When every section has a ✓, tap Complete lesson.

0 of 10 read · keep scrolling

✦ See fewer ads and earn double points — 50 a lesson instead of 25 — with Pro

Deploying Apps Using Microsoft Intune: A Comprehensive Guide

Introduction: The Evolution of Application Management

In the modern workplace, the days of manually installing software on individual computers using physical media or local network shares are largely behind us. Organizations today operate in a distributed environment where employees work from home, in offices, and on the road, using a variety of devices. Managing applications in this context requires a centralized, cloud-based approach that ensures software is delivered consistently, securely, and efficiently. This is where Microsoft Intune comes into play.

Microsoft Intune is a cloud-based endpoint management solution that allows IT professionals to manage user access and simplify app and device management across a fleet of devices. By using Intune to deploy applications, you move away from "high-touch" IT practices toward a "low-touch" or "zero-touch" model. This shift is critical because it reduces the burden on IT support teams, improves the end-user experience by providing self-service installation options, and ensures that security patches and updates are applied in a timely manner.

Understanding how to deploy apps through Intune is not just about moving files from point A to point B; it is about creating a lifecycle management strategy. You must consider how apps are packaged, how they are assigned to specific groups, how they are updated, and how they are removed when they are no longer needed. This lesson will walk you through the technical foundations, the strategic planning required, and the practical execution of deploying applications in a modern enterprise environment.


Not read yet

Understanding the App Lifecycle in Intune

Before diving into the configuration steps, it is essential to understand the lifecycle of an application within the Intune ecosystem. Every application you manage will typically go through four distinct phases: creation, assignment, monitoring, and retirement.

  1. Creation/Packaging: This phase involves preparing your installation files. Intune supports various formats, including Windows MSI, Win32 apps (using the Intune Management Extension), Microsoft Store apps, and web links. You must ensure the installer is silent and does not require user interaction.
  2. Assignment: This is the process of targeting specific users or devices. Intune uses Azure Active Directory (Microsoft Entra ID) groups to determine who receives which application. You can assign apps as "Required" (forced installation) or "Available" (self-service via the Company Portal).
  3. Monitoring: Once deployed, you need to track the success or failure of the installation. Intune provides granular reporting that allows you to see which devices have the app, which are pending, and which have encountered errors.
  4. Retirement/Uninstall: When an application is no longer needed or is replaced by a newer version, you must be able to remove it cleanly from all devices. Intune handles this through uninstall commands that you define during the packaging phase.

Not read yet

Preparing and Packaging Applications for Deployment

The most critical step in successful deployment is the preparation of the installation package. While simple MSI files can be uploaded directly to Intune, more complex applications often require the Win32 App format.

The Intune Win32 App Packaging Tool

The Win32 App format is the preferred method for most enterprise deployments. It allows you to wrap your installation files (MSI, EXE, Scripted setups) into a single .intunewin file. This format provides the flexibility to include dependencies, requirement rules, and detection methods.

To prepare a Win32 app, you need to download the IntuneWinAppUtil.exe utility from GitHub. The process follows these steps:

  1. Create a source folder: Place your installer (e.g., setup.exe or application.msi) in a dedicated folder.
  2. Run the tool: Execute the utility from your command line. You will be prompted for the source folder, the setup file, and the output folder.
  3. Generate the file: The tool will compress your files and generate an .intunewin file, which is what you will upload to the Intune portal.

Callout: MSI vs. Win32 Apps Many administrators wonder when to use a simple MSI upload versus the Win32 App format. A standard MSI upload is sufficient for simple, single-file installers that do not require complex dependencies or custom pre-install scripts. However, if your application requires a custom installation script, specific registry key checks, or a combination of multiple files, you should always use the Win32 App format to ensure a robust deployment experience.

Defining Detection Rules

A detection rule is a piece of logic that Intune uses to verify whether an application is already installed on a device. If the detection rule returns "true," Intune considers the installation successful and will not attempt to install it again.

Common detection methods include:

  • File/Folder existence: Checking for the presence of a specific executable file in C:\Program Files.
  • Registry key: Checking for a specific key in HKEY_LOCAL_MACHINE\SOFTWARE that is created during installation.
  • MSI Product Code: Using the GUID assigned to the MSI package during the build process.

Not read yet

Step-by-Step: Deploying a Win32 Application

Let’s walk through the process of deploying a hypothetical enterprise application, such as a custom PDF viewer, using the Win32 format.

Step 1: Prepare the Package

Assume your installer is PDFViewer.exe. Run the IntuneWinAppUtil.exe tool to create PDFViewer.intunewin.

Step 2: Upload to Intune

  1. Log in to the Microsoft Intune admin center.
  2. Navigate to Apps > Windows > Add.
  3. Select Windows app (Win32) from the app type list.
  4. Upload your .intunewin file.

Step 3: Configure App Information

Enter the application name, description, publisher, and logo. Providing a clear description and a high-quality logo is vital if you intend to make the app available in the Company Portal, as it helps users identify the software.

Step 4: Define Program Settings

This is the most important step for the actual installation:

  • Install command: PDFViewer.exe /silent /norestart
  • Uninstall command: PDFViewer.exe /uninstall
  • Install behavior: Choose "System" if the app should be installed for all users on the device, or "User" if it is specific to the logged-in user.

Step 5: Set Requirements

Define the minimum operating system requirements (e.g., Windows 10 20H2) and architecture (64-bit). You can also add custom requirement rules, such as checking for a minimum amount of disk space or RAM.

Step 6: Detection Rules

Set the rule to "Manually configure detection rules." Select "File," enter the path to the installed executable, and set the check to "File or folder exists."

Step 7: Assignments

Choose the Azure AD group of users or devices that should receive the application. Select "Required" if you want to force the installation, or "Available for enrolled devices" if you want users to choose to install it themselves via the Company Portal.


Not read yet

Best Practices for Application Deployment

Deploying apps is not just about technical execution; it is about managing the end-user experience and minimizing disruption.

Use Pilot Groups

Never deploy an application to your entire organization at once. Create a "Pilot" group containing a small subset of devices or power users. Monitor the deployment for a few days to ensure there are no unforeseen conflicts with other software or system settings. Once the pilot group reports success, expand the deployment to broader groups.

Keep Installers Silent

The biggest cause of deployment failure is an installer that prompts for user input. If an installer requires a user to click "Next" or "Agree," the Intune Management Extension will eventually time out, and the installation will fail. Always test your installation command locally using the SYSTEM context before uploading to Intune.

Tip: Testing in the SYSTEM Context To test your installer exactly as Intune will run it, use the PsExec tool from the Sysinternals suite. Execute psexec -i -s cmd.exe in an administrative command prompt. This opens a new command window running as the SYSTEM account. Try running your install command there. If it works in this window, it will work in Intune.

Handle Dependencies

If your application requires a prerequisite (like a specific version of .NET or a Visual C++ Redistributable), define these as dependencies within the Win32 app settings. Intune will ensure the dependency is installed before attempting to install the main application.

Versioning and Updates

Intune does not automatically "patch" applications in the sense of a traditional software update server. To update an app, you must upload a new version of the .intunewin file to the existing app object in Intune. Ensure your detection rule is robust enough to handle versioning; for example, if you use a registry key, make sure the version number is not hardcoded in the detection rule unless you intend to update the rule every time the app updates.


Not read yet

Common Pitfalls and Troubleshooting

Even with careful planning, things can go wrong. Understanding where to look is half the battle.

Common Issues

  1. Timeouts: By default, Intune gives an installation 60 minutes to complete. If your installer is very large or takes a long time to unpack, the installation might fail due to a timeout. You can increase this limit in the app settings.
  2. Incorrect Detection Logic: If your detection rule is too broad (e.g., checking for a file that existed in a previous version of the app), Intune might think the app is already installed when it is not.
  3. Permissions Issues: If an app tries to write to a user-specific folder (like C:\Users\Username\AppData) but you have set the installation behavior to "System," the installation will likely fail or install to the wrong location.

Troubleshooting Steps

When an app fails to install, the primary log file you need to check is the IntuneManagementExtension.log located at C:\ProgramData\Microsoft\IntuneManagementExtension\Logs.

  • Open the log file: Use a log viewer like CMTrace.
  • Search for the App ID: You can find the App ID in the URL of the Intune portal when you are viewing the specific application.
  • Analyze the errors: Look for lines containing "Exit code." A common exit code is 1603, which is a generic Windows Installer error. If you see 1618, it means another installation is already in progress.

Warning: The 1618 Error Code The 1618 error is a classic "Another installation is in progress" message. This often happens if Intune tries to install an app while Windows Update is simultaneously installing patches. To mitigate this, consider adding a delay or using a script that checks if msiexec.exe is running before launching your installer.


Not read yet

Comparison: Deployment Methods in Intune

When choosing how to deliver an app, use this quick reference table to determine the best approach for your scenario.

Method Best For Pros Cons
Microsoft Store (New) Public apps (Company Portal, modern tools) Easy to manage, automatic updates Limited to Store apps only
Win32 App Custom software, legacy apps, complex setups Full control, scriptable, dependencies Requires packaging effort
MSI (Direct) Simple MSI installers No packaging required Limited logic and dependencies
Microsoft 365 Apps Office suite Built-in management, easy configuration Only for Office apps
Web Link SaaS apps (e.g., internal portals) Extremely simple Not a "real" installation

Advanced Strategies: Using PowerShell Scripts

Sometimes, a simple installer is not enough. You might need to modify a configuration file after installation, set a specific registry key for user preferences, or clear out temporary files. Intune allows you to chain these actions using PowerShell scripts.

You can include a PowerShell script as a "pre-install" or "post-install" task. For example, if you are deploying a browser, you might need to copy a company-specific bookmark file into the user's profile folder. Because the installation runs as SYSTEM, you will need to use a script that identifies the currently logged-in user and targets their specific AppData folder.

Example: Post-Installation Script

# Get the current logged-in user
$username = (Get-WmiObject -Class Win32_ComputerSystem).UserName
$userProfile = "C:\Users\$($username.Split('\')[1])"

# Define the source and destination
$sourceFile = "C:\Temp\Config.json"
$destFolder = "$userProfile\AppData\Roaming\CompanyApp"

# Create directory if it doesn't exist
if (!(Test-Path $destFolder)) {
    New-Item -ItemType Directory -Path $destFolder
}

# Copy the file
Copy-Item -Path $sourceFile -Destination "$destFolder\Config.json" -Force

Explanation: This script dynamically finds the user profile path of the person currently logged into the machine. It then copies a configuration file to their local roaming profile, which is a common requirement for enterprise applications.


Not read yet

Managing Updates and Replacements

One of the most frequent questions regarding Intune is how to handle updates. If you have deployed "App Version 1.0" and now need to deploy "App Version 2.0," you have two main options:

  1. Supersedence: This is the preferred method in Intune. You configure the new app (2.0) to "supersede" the old app (1.0). When you assign the new app to a group, Intune will automatically uninstall the old version and install the new one. This ensures a clean transition.
  2. Manual Update: You can simply update the source files in the existing Intune app object. However, this does not always trigger a re-run on devices that already have the software, unless the detection rule fails.

Implementing Supersedence

To implement supersedence, go to the properties of your new app in Intune. Under the "Supersedence" section, click "Add" and select the old application. You can choose whether to uninstall the old app before installing the new one. This is highly recommended for complex software where having two versions installed simultaneously might cause conflicts.


Not read yet

Security Considerations

Deploying software is inherently a security risk. If you deploy an application that contains malicious code, you are essentially distributing malware to your entire organization.

  • Source Integrity: Only download installers from official, trusted vendor websites. Verify the digital signature of the installer before packaging it.
  • Principle of Least Privilege: Always test if your application needs to run as SYSTEM. If an application can run as a standard user, configure it that way. This limits the potential impact if the application is compromised.
  • Blocking Apps: Intune also allows you to "block" specific applications. If you identify an application that is prohibited in your environment, you can use an App Configuration policy or a compliance policy to prevent it from running or to force its removal.

Monitoring and Reporting

Once your deployment is live, you must keep an eye on the results. The "Device Install Status" report in the Intune portal is your primary dashboard. It shows you the status for every device in the assigned group.

  • Success: The app is installed and the detection rule passed.
  • Failed: The installation process returned an error code.
  • Pending: The device has not yet checked in with Intune to receive the policy.
  • Not Applicable: The device does not meet the requirement rules (e.g., the wrong OS architecture).

If you see a high number of failures, do not ignore them. Click on the individual device status to see the specific error code. Often, a pattern will emerge, such as a specific department having a different configuration or a specific version of Windows that is causing the installer to crash.


Not read yet

Key Takeaways

As we conclude this lesson on deploying applications with Microsoft Intune, keep these core principles in mind:

  1. Standardization is Key: Always aim for silent, automated installations. If you cannot automate the installation, you cannot effectively scale it across an enterprise.
  2. The Power of Win32: While simple MSI uploads are convenient, the Win32 App format is your best friend for complex, real-world scenarios. It provides the control needed to handle dependencies and custom logic.
  3. Test, Test, Test: Never bypass the pilot group. Use a small group of devices to validate your deployment before rolling it out to the entire organization.
  4. Robust Detection: Your detection rule is the backbone of your deployment. If your detection logic is flawed, your reporting will be inaccurate, and your users will experience inconsistent installations.
  5. Lifecycle Management: Think beyond the initial install. Plan how you will update the application via supersedence and how you will eventually remove it when it is no longer required.
  6. Log Analysis: When things go wrong—and they eventually will—don't guess. Check the IntuneManagementExtension.log file to see exactly what the installer was doing and why it failed.
  7. User Experience: Use the Company Portal to provide a self-service experience. When users feel empowered to install the tools they need on their own terms, it reduces the pressure on your help desk and increases overall productivity.

By mastering these concepts, you transition from being a reactive IT administrator to a proactive manager of the digital workspace. Application management in Intune is a continuous process of refinement, testing, and improvement, but the result is a resilient, secure, and user-friendly environment that supports the modern workforce.

Not read yet

Each section gets a ✓ as you scroll through it. Tap the button to jump to the next one.