PSADT 4.1.8 - Deployment error with Start-ADTProcess

Hello, similar to a recent Start-ADTMsiProcess error mentioned in the forum I'm getting it with Start-ADTProcess on v4.1.8

<![LOG[[Uninstall] :: Uninstalling  ]LOG]!><time=**"08:51:23**.682+0" date="2-25-2026" component="Deploy Application" context="NT AUTHORITY\SYSTEM" type="1" thread="9232" file="C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\Invoke-AppDeployToolkit.ps1">
<![LOG[[Uninstall] :: [C:\Program Files\Autodesk\AdODIS\V1\Installer.exe] is a valid fully qualified path, continue.]LOG]!><time="08:51:23.730+0" date="2-25-2026" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="9232" file="C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Uninstall] :: UseShellExecute is set to true, standard output and error will not be available.]LOG]!><time="08:51:23.757+0" date="2-25-2026" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="9232" file="C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Uninstall] :: Working Directory is [C:\Program Files\Autodesk\AdODIS\V1].]LOG]!><time="08:51:23.759+0" date="2-25-2026" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="9232" file="C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Uninstall] :: Executing [C:\Program Files\Autodesk\AdODIS\V1\Installer.exe -i uninstall -q --trigger_point system -m C:\ProgramData\Autodesk\ODIS\metadata\{3D456298-946E-369A-852A-56ADD40547D0}\bundleManifest.xml -x C:\ProgramData\Autodesk\ODIS\metadata\{3D456298-946E-369A-852A-56ADD40547D0}\SetupRes\manifest.xsd]...]LOG]!><time="08:51:23.762+0" date="2-25-2026" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="9232" file="C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Uninstall] :: Error Record:
-------------
 
Message               : Parameter set cannot be resolved using the specified named parameters.
                        
FullyQualifiedErrorId : AmbiguousParameterSet,Start-ADTProcess
ScriptStackTrace      : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 20227
                        at Uninstall-ADTDeployment, C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\Invoke-AppDeployToolkit.ps1: line 203
                        at <ScriptBlock>, C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\Invoke-AppDeployToolkit.ps1: line 338
                        
PositionMessage       : At C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\Invoke-AppDeployToolkit.ps1:203 char:5
                        +     Start-ADTProcess -FilePath "C:\Program Files\Autodesk\AdODIS\V1\I ...
                        +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="**08:55:00**.781+0" date="2-25-2026" component="Invoke-AppDeployToolkit.ps1" context="NT AUTHORITY\SYSTEM" type="3" thread="9232" file="C:\WINDOWS\IMECache\2d5ea939-81d6-4422-8e00-d92ab441bb9c_6\Invoke-AppDeployToolkit.ps1">
<![LOG[[Uninstall] :: Bypassing Show-ADTDialogBox [Mode: Silent]. Text: Error Record:
-------------

The command is :
Start-ADTProcess -FilePath "C:\Program Files\Autodesk\AdODIS\V1\Installer.exe" -ArgumentList "-i uninstall -q --trigger_point system -m C:\ProgramData\Autodesk\ODIS\metadata\{3D456298-946E-369A-852A-56ADD40547D0}\bundleManifest.xml -x C:\ProgramData\Autodesk\ODIS\metadata\{3D456298-946E-369A-852A-56ADD40547D0}\SetupRes\manifest.xsd" -WindowStyle Hidden

It does remove the software (Civil 3d 2025), taking 3 1/2 minutes between execute starting and the log file reporting this failure and other removals don't proceed. I could add -ErrorAction SilentlyContinue but then would I know what's going on!

:thinking:
I'm wondering 'if' it might be the xml and xsd paths you are passing to the command unquoted?
Maybe try this as your command (note the escaped double quotes around the paths):

Start-ADTProcess -FilePath "C:\Program Files\Autodesk\AdODIS\V1\Installer.exe" -ArgumentList "-i uninstall -q --trigger_point system -m `"C:\ProgramData\Autodesk\ODIS\metadata{3D456298-946E-369A-852A-56ADD40547D0}\bundleManifest.xml`" -x `"C:\ProgramData\Autodesk\ODIS\metadata{3D456298-946E-369A-852A-56ADD40547D0}\SetupRes\manifest.xsd`"" -WindowStyle Hidden

Unless there is something incorrect within the XML or XSD files that the command is tripping over on.

I'd remove -WindowStyle Hidden

Unless this runs as User, you are not going to see anything.

I work with the Autodesk Installers all the time in PSADT v4.
The Start-ADTProcess -ArgumentList line format is for an uninstall needs to be contained within ' ' not " "

$adODISInstaller = "C:\Program Files\Autodesk\AdODIS\V1\Installer.exe"

# Remove Autodesk Revit 2026
Start-ADTProcess -FilePath $adODISInstaller -ArgumentList '-i uninstall -q -m C:\ProgramData\Autodesk\ODIS\metadata\{8986CA21-EA9C-32F3-A1DB-C34BD2BDA7A5}\bundleManifest.xml -x C:\ProgramData\Autodesk\ODIS\metadata\{8986CA21-EA9C-32F3-A1DB-C34BD2BDA7A5}\SetupRes\manifest.xsd --extension_manifest C:\ProgramData\Autodesk\ODIS\metadata\{8986CA21-EA9C-32F3-A1DB-C34BD2BDA7A5}\setup_ext.xml --extension_manifest_xsd C:\ProgramData\Autodesk\ODIS\metadata\{8986CA21-EA9C-32F3-A1DB-C34BD2BDA7A5}\SetupRes\manifest_ext.xsd -o C:\ProgramData\Autodesk\ODIS\metadata\{8986CA21-EA9C-32F3-A1DB-C34BD2BDA7A5}\deploymentCollection.xml' -IgnoreExitCodes 1605,551,1618

Additionally you dont need to specify -WindowStyle 'Hidden' as the -q set the Autodesk installer to silent

Hope this helps

Hi, interesting idea, but I'm not convinced.
I have packaged Revit 2026 as well, the installer being
Start-ADTProcess -FilePath 'Setup.exe' -ArgumentList "-q" -WindowStyle Hidden

and that works fine.

However, though I know it's worked previously, during a retest to getthis back on to a VM to compare your script above, the update has failed to apply with the same issue.

Start-ADTProcess -FilePath 'Revit_2026_4_0.exe' -ArgumentList "-q" -WindowStyle Hidden

How can one work and the other fail?

There seems to be no consistency.

<![LOG[[Install] :: Error Record:

-------------

Message               : Parameter set cannot be resolved using the specified named parameters.

FullyQualifiedErrorId : AmbiguousParameterSet,Start-ADTProcess

ScriptStackTrace      : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\7e067a3d-e055-49e6-a51c-94ae9eb5d86e_1\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 20227

                        at Install-ADTDeployment, C:\WINDOWS\IMECache\7e067a3d-e055-49e6-a51c-94ae9eb5d86e_1\Invoke-AppDeployToolkit.ps1: line 161

                        at <ScriptBlock>, C:\WINDOWS\IMECache\7e067a3d-e055-49e6-a51c-94ae9eb5d86e_1\Invoke-AppDeployToolkit.ps1: line 321

PositionMessage       : At C:\WINDOWS\IMECache\7e067a3d-e055-49e6-a51c-94ae9eb5d86e_1\Invoke-AppDeployToolkit.ps1:161 char:5

                        +     Start-ADTProcess -FilePath 'Revit_2026_4_0.exe' -ArgumentList "-q ...

Are you actually on 4.1.8, or you think you are? Below is line 20227 as it stands in 4.1.8's PSAppDeployToolkit.psm1 file, which isn't a place it could throw.