I am trying to run a cmd with the following line
Start-ADTProcess -FilePath 'c:\windows\system32\cmd.exe' -ArgumentList "/c Ultra Sigma\Install.cmd"
The folder Ultra Sigma is in the files folder, but i am always getting
Execution failed with exit code [1].
inside the cmd is
setup.exe /q /AcceptLicenses "yes" /r /disableNotificationCheck /confirmCriticalWarnings
If I run the cmd manually it works
Any ideas , I 'm sure it's my syntax. I had no problem with version 3
thnaks for your help
Why you'd be running a batch script like that to call a one-liner instead of just doing it natively in PowerShell is beyond me. Regardless, an exit code of 1 indicates something went wrong with the call.
I'd do Start-ADTProcess -FilePath setup.exe -ArgumentList '/q /AcceptLicenses "yes" /r /disableNotificationCheck /confirmCriticalWarnings' and let us know how you go.
I tried that before but was returning an error , so That is why i was trying to run the command in a cmd file. But your syntax works , I still do not see why my syntax did not work, but not fretting on it. Thanks
I don't know why either to be honest, but I'm also not fussed about it. You're not going to 4WD through the forest to get from A to B when there's a nice, smooth highway you can take instead ![]()
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.