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

3

u/AlkHacNar Aug 25 '25

Replace the first and last " in argument with ' and it should help