Hello.
This will probably be a long and very complex question, so sit back and enjoy the ride (and feel free en point out any flaws in my logic/flow).
I have the ungrateful task of making new websites for our customers (we make travel websites, and as such have a lot of domains, accounts and other stuff), just the admin part, not the code and designing part. We run IIS6.0 in a windows 2003+2003R2 environment.
I have made a web page which have inputs for the name, description and where the website should end up. (one input for name, one for description and one for destination, naturally)
So, with that bit of background, it's time for the real meat of the question:
I would like to make a few (okay, a lot of) scripts that makes the following:
1) Make two users in AD: One NameApp and one NameWeb with different passwords. I assume that it's possible to make in some way, although I haven't found one yet)
2) Makes a folder in a specific dictory (which I assume is 'Md C:\folder\name\ <enter>)
3) Make a new application pool (based on the website input: NameApp)
4) Make a website: With description (from website), Host header ('name' from website), a path to home directory (\\network\path\name ), it should allow anonymous access, use the authed user, have read and run scripts permissions.
Use the new application pool (that was made in point 3) instead of the default one
Change the directory security to use a different account (DOMAIN\nameWeb )
5) Copy the websites from one server to several others (the IIS 6.0 migration tool 1.1 is what we currently use, but it requires us to manually find the Identifier for each website and copy/paste it into the syntax for the IIS migration tool.
*whew* So, now we're done for now.
Any ideas, questions, answers, dirty und.... no, not that, but the rest. Feel free to fire away.
/ZoRo