Tech Accelerator: Microsoft Intune Suite
Apr 11 2023 08:00 AM - Apr 12 2023 11:00 AM (PDT)

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?




2 Replies
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
best response confirmed by DGMalcolm (Contributor)

It depends on how you named your bat file. I am explaining it in this blog

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