AutoCAD Fails on First Attempt in Intune, Success on Second

Hello everyone,

I’m deploying AutoCAD 2025 using PSADT. When I test the script manually using Deploy-Application.exe, everything works perfectly. However, when I deploy it through Intune, the installation fails on the first attempt every time. If I retry the installation a second time, it always succeeds. I’m using the Company Portal for testing.

Has anyone else experienced similar behavior? I’ve successfully deployed multiple other applications using PSADT and Intune without issues; it’s only this package that consistently fails on the first try. The package size is around 10GB, so it should be well within Intune’s 30GB limit.

Any insights would be greatly appreciated. Thanks in advance!

Maybe it’s a timeout issue, it’s a big package and could take time to download & install within the default time limit (at least the first time). Since you say it’s always successful the 2nd time you might get some caching benefits from DO that helps downloading and installing it within the time limit the 2nd time.

I agree with @JFP , You could try extending the timeout “Installation time required (mins)” setting to see if that improves it:

Hello everyone,

Thank you for the previous suggestions. I’m in the process of testing them right now. In the meantime, I’ve made some adjustments to my package:

  1. Package Size Reduction: Initially, I included both English and French language packs, which increased the package size to over 4GB. I’ve since trimmed it down by including only the English language pack, bringing the total size below 4GB.
  2. Different Deployment Methods Attempted:
  • First, I used a deployment package containing a .bat file for installation.
  • I also tried an approach I found on Silent Install HQ (link here), which included specific steps for a silent installation of AutoCAD.
  • Additionally, I reviewed guidance from System Center Dudes for deploying Autodesk packages via Intune (link here).
  1. Error Code: Despite these attempts, I consistently encounter an error code 1 across different computers. I’ve verified the package, and the environment seems consistent, so I’m not sure why this error keeps recurring.
  2. Further Testing Plans: I plan to increase the timeout to 120 minutes to see if that helps, given the package size and complexity. I’ll report back on the outcome of this adjustment.

Any insights into resolving error code 1 with PSADT for this type of package would be greatly appreciated. Thank you again for the support!

1 Like

Hi Marc-Andre,
sorry that you must install a Autodesk Product (esp. AutoCAD :wink: ).
We use Empirum Software Deployment together with PSADT for better scripting experience.

I saw that Code 1 error mainly if there was an existing previous installation of AutoCAD - e.g. doing the installation a 2nd time. But not consistently. So I prefer a good uninstall of all previous AutoCAD installations prior to install the new Version.
2 hints for PSADT scripting Autodesk Products:

1.Jason Bergner provides good basic instructions using PSADT for Autodesk product install and uninstall (and much more): https://silentinstallhq.com/
2. use that code below to observe and examine the Registry keys for Autodesk installation. maybe you will see some garbage from old installation (see also here: https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-handle-the-uninstall-if-the-Autodesk-Custom-Install-deployment-package-is-no-longer-available-in-the-original-location.html )

Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {($_.DisplayName -match "Autodesk") -or ($_.Publisher -match "Autodesk")} | Select-Object -Property DisplayName, PSChildName, UninstallString | Ft -autosize | out-string -width 4096

Hope that helps a little bit.
/Jochen

2 Likes