Forum Discussion

DGMalcolm's avatar
DGMalcolm
Iron Contributor
Jan 14, 2022
Solved

Deploy Update Compliance Configuration Script via .BAT

Hey there,

 

I am trying to deploy the Update Compliance Configuration Script through Intune using a batch file. I went through the instructions to modify the .bat file and it runs fine locally. I then used the Win 32 Content Prep tool to package all of the files for deployment. I started adding the package to Intune by choosing "Win 32 App" as the app type. But I don't know what I'm supposed to use for the install command. I think I'm missing some part of this. Any ideas?

 

TIA

~DGM~

  • Hi

    It depends on how you named your bat file. I am explaining it in this blog
    https://call4cloud.nl/2021/07/what-about-printer-drivers/

    You will notice I am using PowerShell as install.ps1 to install the printer driver, so my install cmd would be :
    powershell.exe -executionpolicy bypass .\install.ps1
    Luckily when you have created an bat file like install.bat it would be just a simple: install.bat
    But please make sure that you have that install.bat in the root of your win32app

2 Replies

  • Hi

    It depends on how you named your bat file. I am explaining it in this blog
    https://call4cloud.nl/2021/07/what-about-printer-drivers/

    You will notice I am using PowerShell as install.ps1 to install the printer driver, so my install cmd would be :
    powershell.exe -executionpolicy bypass .\install.ps1
    Luckily when you have created an bat file like install.bat it would be just a simple: install.bat
    But please make sure that you have that install.bat in the root of your win32app
  • You can just specify the filename like install.cmd as the install command (Or install.bat or whatever you used for testing locally) You should also specify a uninstall command, if you don't have one you can just specify uninstall.cmd

Resources