Installing exe using CMD or powershell via intune

Aran Billen 941 Reputation points
2025-01-09T14:38:14.9666667+00:00

Hi all,

I am attempting to install the Loom application silently, and I’ve successfully achieved this locally using a CMD or PowerShell script with the following command:

.\Loom.exe -DeploymentType 'Install' -DeployMode 'NonInteractive'

This works perfectly when run locally. However, when packaging the CMD or PowerShell script in Intune as the source file for the intunwin, the installation does not work.

Currently, I am testing the deployment through PowerShell, with the Intune install command set as:

powershell -ex bypass -file Loomv2.ps1

When I install Loom manually, I notice that it installs under the AppData folder rather than Program Files. Could this behavior be affecting the installation through Intune? Is there something I need to modify on the Intune side to ensure the script functions as expected?

Any insights or suggestions would be greatly appreciated.

Thanks in advance!

Microsoft Security Intune Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-01-10T02:30:57.8933333+00:00

    @Aran Billen Thanks for posting in our Q&A. From your description, did you mean that you package Loom.exe and install command in an intunewin file and then create a PowerShell script to install it? If there is anything misunderstanding, please correct me.

    Please note that you successfully run in local doesn't mean it will also work via intune. To confirm if it can work well via intune, it is suggested to run the scripts in the System account using the psexec tool locally:

    psexec -i -s

    If there is anything update, feel free to let us know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. JM 1,166 Reputation points
    2025-01-10T09:12:53.1266667+00:00

    Package the application as Win32 app and provide Install command as: .\Loom.exe -DeploymentType 'Install' -DeployMode 'NonInteractive'. Deploy in System context. Let me know if it works.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.