Product key not being applied during installation of VS 2022 Professional or Enterprise Can any one Help for the same I am using Powershell app deploy toolkit. by giving below commands i am able install the VS 2022 But Product key not being applied during installation of VS 2022 Professional. I am using 25 alphanumeric characters in my product key, Which is working when I apply Manually.
$RetVal = Execute-Process -Path "$dirFiles\vs_Professional.exe" -Parameters "--add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.VisualStudio.Workload.Python --add Microsoft.VisualStudio.Workload.VisualStudioExtension --add Microsoft.VisualStudio.Workload.Azure --add Microsoft.VisualStudio.Workload.Data --add Microsoft.VisualStudio.Workload.DataScience --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeCrossPlat --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.Node --add Microsoft.VisualStudio.Workload.Office --locale en-US --quiet --wait --norestart --productKey XXXX-XXXX-XXX-XXXX" -PassThru