Creating a New Web Site

For many companies, the process of creating a new Web site can be a complicated and mysterious activity. Of course, the Add Web Site dialog box, shown in Figure 15-5, can help you create a Web site, but if your duties require creation of more than one or two Web sites, you should be very interested in the CreateSite.ps1 script.

The Add Web Site dialog box allows configuration of a new Web site.

Figure 15-5. The Add Web Site dialog box allows configuration of a new Web site.

The CreateSite.ps1 script uses two of the new WMI classes found in the root\WebAdministration WMI namespace. It uses the Site class to create the Web site, but it also requires the BindingElement WMI class to supply the ...

Get Windows PowerShell™ Scripting Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.