Hello,
I'm trying to build silent script SCCM install and I need some help to download prerequesites.
I want to download ADK files and winPE files.
I download setup here : https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-offline-install
Thenk, my command line to download is here : adksetup /quiet /layout c:\temp\ADKoffline
In my script, I have :
some command
start-process -filepath "adksetup.exe" -WorkingDirectory "c:\sources" -ArgumentList "/quiet /layout c:\sources"
adksetup /quiet /layout c:\temp\ADKoffline
some command
How can I do to wait adksetup line is over before continue my script ?
This line download 1GB of data and I don't want to continue before this process ends.
Thank you for your help