O'Reilly logo

Windows PowerShell™ Scripting Guide by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required