When there is no default website present and another website is created with Id = 1 the Stop-DefaultWebsite stops that site. In my case that is the "SharePoint Web Services" website and that causes a installation failure later in the process. I would suggest that this function does not trigger on that id.
When there is no default website present and another website is created with Id = 1 the Stop-DefaultWebsite stops that site. In my case that is the "SharePoint Web Services" website and that causes a installation failure later in the process. I would suggest that this function does not trigger on that id.
See here a reference to the line containing the issue: https://github.com/brianlala/AutoSPInstaller/blob/4c7376510c706571a7e49656d5a928a9271f4a6b/SP/Automation/AutoSPInstallerModule.psm1#L8036