Creating a New Application Pool

If you have a significant number of application pools to create on your new Web server, you'll probably want to create them using a script. This is usually true in spite of the fact that the Add Application Pool dialog box, displayed in Figure 15-6, is easy to fill out. As important as application pools are, they are very easy to create with a script; follow the instructions to see how simple it is to create the CreateApplicationPool.ps1 script.

Creating new application pools requires only a minimal amount of typing.

Figure 15-6. Creating new application pools requires only a minimal amount of typing.

Begin the CreateApplicationPool.ps1 script with the param statement. For this script, you'll ...

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.