Forum Discussion
KJW_PK201
Feb 20, 2025Copper Contributor
Deploying Win32 Apps that use scripts to install - first install takes forever
I am trying to deploy some apps that use scripts packed in the intunewin package and deployed to Company Portal as Win32 apps. So far I use both .cmd and .ps1 script files, and at deployment to Intu...
klenTAHN
Feb 24, 2025Copper Contributor
Depending on the situation (new device vs existing) as well as your Intune configuration, i've found a couple of things:
- Once every 8 hours or so, the IME does a full roll of scripts/remediations/software installs, etc. Depending on how much you have in Intune, this can take a while. If the device is new and hasn't completed this initial run, that wait can feel pretty significant (40min plus depending on connectivity).
- Make sure your install command is properly configured. just having the filename in the install field can cause Intune to take forever to install and often fail.
- PowerShell
- powershell.exe -executionpolicy bypass -file "filename.ps1"
- batch/cmd
- cmd.exe /c "filename.bat/cmd"
- PowerShell
If neither of those are the issue, I'd look at the connectivity level of your environment. If you have updates coming in from WUfB or you have Delivery Optimization turned off, either can cause a larger load on your network.