It works great, and does exactly what it supposed to…except that when there isn’t enough disk space, it returns error code 1618 into ConfigMgr. I would like to assign a custom error code to this as I will need to adjust free space before I can retry. What is the best way to accomplish this to avoid scheduled retries until the disk space issue is resolved?
Thanks for the reply, but I must still be missing something. Is there a value stored in a variable to check for with an IF statement? Or do I just add your text to the end of the Show-InstallationWelcome line?