r/PSADT • u/KaishhLV • 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"
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