Deploy EXE file from Microsoft Intune using Azure Blob Storage

A couple of weeks ago I managed to get my first deployment of executables to work with Microsoft Intune. This approach not only allows for deployment of EXE files but also MSI files alongside other files like DLL, CAB and MSP files. Basically building a deployment package that can be distributed by using Microsoft Intune and Microsoft Azure blob storage. The solution is not the most beautiful in the world by far, but it seems to do the job which is the important part until Microsoft provides a better solution for the community.

The solution is using a combination of Microsoft Azure blob storage and the newly introduced PowerShell script support in Intune (Also known as Project Sidecar). We will be able to use a PowerShell scripted deployment on the clients like many admins have done for many years in Active Directory using either a Batch, VBScript or PowerShell in Group Policies.

The PowerShell scripts showned in this article are intentionally fairly basic, but you can add your own logic into the script to check for whether the software is already installed, previous installations or any pre-requistes on the client.

Video

<Will be posted at a later time…. >

Requirements:

  • You need a Microsoft Azure Subscription for using Azure Storage Account
  • You are using Windows 10 version 1607 or later
  • You have a Microsoft Intune subscription

Configuration:

The following steps provides guidence on how to configure your Azure storage account for storing your setup files.

  1. Create a Microsoft Azure Storage Account.
  2. Within the newly created storage account create a new “container”.
  3. Upload the Installer/Package you need to deploy.
  4. Create a new “Shared Access Signature“.
  5. Combine this SAS with the URL for your package and test that you can download the package with your package from a browser. ex. https://intune.blob.core.windows.net/installers/DropboxEnterprise.exe?sv=2017-04-17&ss=b&srt=sco&sp=rl&se=2067-11-21T20:40:45Z&st=2017-11-21T09:40:45Z&spr=https&sig=NhEIL2IZwmq3hEzG1svw%2BYHwk%3D.
  6. Modify either the PowerShell script for single file executable deployment or package deployment witih multiple files.
  7. Import the script into Microsoft Intune PowerShell script.
  8. Assign the PowerShell script to a group.
  9. Wait for the magic to happen on the clients.

Dropbox PowerShell Script example:

Other examples can be found here:

Troubleshooting:

For the solution to work as expected you need to have the “Microsoft Intune Management Extension” installed on the client. The extension is automatic installed by Microsoft Intune and should be in “App/Remove Programs”. You can see that Microsoft Intune will download a temporary copy of the PowerShell script to the folder “C:\Program Files (x86)\Microsoft Intune Management Extension\Policies\Script” during execution of the PowerShell.

A BIG THANKS for some great input to Per Larsen.

/Peter

Feedback

Another approach would be to use NuGet packages and deploy them using Chocolatey as mentioned by both Per Larsen and Lars Krogh.

 

 

 

 

Leave a Reply