Execute-Process

Topics: Archive - General
Aug 28, 2014 at 9:56 AM
I'm working on a script to install the sccm client.

function execute-process will "not wait" until ccmsetup.exe has finished installation.

here is the command line:
Execute-Process -FilePath "ccmsetup.exe" -Arguments "SMSSITECODE=Test Site"

any idea?

thanks in advance for your help.
Coordinator
Sep 1, 2014 at 8:55 PM
It's a while since I wrote a script to do this and I don't have a copy of it handy. Have you tried Start-Process -Wait? If none of the execution cmdlets/functions are waiting for the process you could consider using the Wait-Process cmdlet or parsing the log file.
Coordinator
Sep 2, 2014 at 10:19 PM
Looks like someone has written a script already using the toolkit!

http://gallery.technet.microsoft.com/scriptcenter/Offline-Install-or-5f0a35d6