Aa typical task for web server administrators is creating a new website and adding content to it. This recipe will show you how to create HTML code in PowerShell and how to register your SSL certificate on your website.
IIS management – creating a website
Getting ready
Install and start PowerShell Core.
How to do it...
Perform the following steps:
- First of all, we will clean up the default website we don't need:
Import-WinModule WebAdministration
Get-WebSite | Remove-WebSite
- To create a new website, we can generate some HTML content with the ConvertTo-Html...