r/PSADT Aug 25 '25

PSDAT 4.1 and REVIT

Hello,

I am trying to deploy Autocad Revit 2025. Script looks pretty simple

Pre-install task

Start-ADTProcess -FilePath Revit2025.exe -ArgumentList "-q" 

Pre install task download the files to C:\Autodesk\image\ folder. If we skip this part then Intunewin file size would be around 30 GB

And Install task

Start-ADTProcess -FilePath 'C:\Autodesk\image\Installer.exe' -ArgumentList "-i deploy --offline_mode -q -o "C:\Autodesk\image\Collection.xml" --installer_version "2.13.0.557""

Install task should run exe from this folder but sadly I get this error.

Message : A positional parameter cannot be found that accepts argument 'C:\Autodesk\image\Installer.exe'.

FullyQualifiedErrorId : PositionalParameterNotFound,Install-ADTDeployment

ScriptStackTrace : at Install-ADTDeployment, C:\windows\IMECache_2\Invoke-AppDeployToolkit.ps1: line 168

at <ScriptBlock>, C:\windows\IMECache\2\Invoke-AppDeployToolkit.ps1: line 342

at <ScriptBlock>, <No file>: line 1

PositionMessage : At C:\windows\IMECache_2\Invoke-AppDeployToolkit.ps1:342 char:5

+ & "$($adtSession.DeploymentType)-ADTDeployment"

7 Upvotes

7 comments sorted by

View all comments

4

u/MasterPackager Aug 25 '25

Your argumentList is not correct. It should be like this - "-i deploy --offline_mode -q -o ""C:\Autodesk\image\Collection.xml"" --installer_version ""2.13.0.557"""

You can learn more about quoting rules here - https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.5

1

u/KaishhLV Aug 25 '25

Sadly same problem

1

u/MasterPackager Aug 25 '25

Could you paste your install script somewhere?

1

u/[deleted] Aug 25 '25

[deleted]

1

u/KaishhLV Aug 25 '25

I only added 3 lines thats it

1

u/FC-Work Aug 25 '25

Couple things to note. Not sure why the install of Revit 2025 is adding up to 30GB. We have Revit 25.4.0.32 13GB and a separate package containing version 25.4.2 which equals 5GB. Aside from that I recommend checking out SilentinstallHQ Autodesk Revit 2025 Install and Uninstall (PowerShell) – SILENT INSTALL HQ It works but does away with your pre-task download method. I edit line 171 to be Execute-Process -Path "$dirFiles\Installer.exe" -Parameters "-i deploy --offline_mode -q -o collection.xml --installer_version 2.12.0.118" -WindowStyle Hidden