Hi,
Could we know if the script is same as the following script:
#Install Windows Identity Foundation
Enable-WindowsOptionalFeature -Online -FeatureName Windows-Identity-Foundation -NoRestart
#Copy AX Parameters file to local drive
xcopy .\axparm.txt c:\tempax\
xcopy .\1-MSChart.exe c:\tempax\
xcopy .\2-SQLSysClrTypes.MSI c:\tempax\
xcopy .\3-ReportViewer.MSI c:\tempax\
xcopy .\4-SQLSERVER2008_ASAMO10.MSI c:\tempax\
xcopy .\setup.exe c:\tempax\
#Install PreReqs after copying them locally
$p1 = start-process -FilePath "C:\tempax\1-MSChart.exe" -ArgumentList "/q /norestart" -NoNewWindow -Wait -PassThru
$p2 = start-process -FilePath "C:\tempax\2-SQLSysClrTypes.MSI" -ArgumentList "/q" -NoNewWindow -Wait -PassThru
$p3 = start-process -FilePath "C:\tempax\3-ReportViewer.MSI" -ArgumentList "/q" -NoNewWindow -Wait -PassThru
$p4 = start-process -FilePath "C:\tempax\4-SQLSERVER2008_ASAMO10.MSI" -ArgumentList "/q" -NoNewWindow -Wait -PassThru
#Install Microsoft Dynamics AX R3 with Parameter File
if ($p1.exitcode -eq 0 -and $p2.exitcode -eq 0 -and $p3.exitcode -eq 0 -and $p4.exitcode -eq 0)
{
start-process -FilePath "C:\tempax\setup.exe" "ParmFile=C:\TEMPAX\AXParm.txt" -wait
Remove-Item -Path "c:\tempax" -Recurse
}
If not, please verify it.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.