Solved

How to create application pool from a template using the command-line

Posted on 2008-10-07
3
801 Views
Last Modified: 2012-05-05
I'm trying to find a way to create application pools from the command-line by using another application pool as a template.  Has anyone found a way to do this?
0
Comment
Question by:TAGCLTS
  • 2
3 Comments
 
LVL 27

Expert Comment

by:Dan McFadden
ID: 22663982
The only way I was able to accomplish this was to document the config wanted into something like a csv and have a script read in the line, split on commas and then use ADSI to create an AppPool and then modify the parameters of that AppPool.  I was looking for something like this and ended up build my own script to do this.

MS documents the methods for AppPools here: http://www.microsoft.com/technet/scriptcenter/scripts/iis/iis6/apps/default.mspx?mfr=true

I use a csv for the template that is formatted like so:  AppPoolName,Option1,Option2,Option3,Option4, ...

The script functions like so:
- read a line from template file
- do a split on the line
- call a function to create the AppPool
- call a function to modify the properties require on the AppPool
0
 
LVL 1

Author Comment

by:TAGCLTS
ID: 22670243
I'm not that great at VB scripting with files yet.
Do you have a sample of a script that would read the template file?
0
 
LVL 1

Accepted Solution

by:
TAGCLTS earned 0 total points
ID: 22716266
I ended up using the the adsutil to create the application pools, then using the command again to change to the desired settings.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
powershell - detection of system errors 3 40
ASP.Net Session State alternatives 3 86
Public IP Address Amazon Servers 2 56
unable to set breakpoints in chrome source tab 1 49
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question