Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mvaneijken opened this issue Sep 9, 2020 · 0 comments

Comments

@mvaneijken
Copy link

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:

$defaultWebsite = Get-Website | Where-Object {$_.Name -eq "Default Web Site" -or $_.ID -eq 1 -or $_.physicalPath -eq "%SystemDrive%\inetpub\wwwroot"} # Try different ways of identifying the Default Web Site, in case it has a different name (e.g. localized installs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant