brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
170 stars 80 forks source link

Stop-DefaultWebsite stops website with id 1 (which is not the Default Website in this case) #68

Open mvaneijken opened 3 years ago

mvaneijken commented 3 years ago

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