Why use batch scripts to setup IIS?
I’m weird. I like my development, test, and production environments to be setup as close to the same as possible. It isn’t exactly rocket science but it helps eliminate errors that always tend to creep up on deployment day and are always unexpected. I’ve had instances where deployments were rolled back because a site wasn’t tested with an SSL certificate on test or in a load balanced environment, someone missed a key IIS setting that caused half of all requests to fail.
So now whenever I am working on a new site, I like to create a batch script does all of this creation for me and I can run it on multiple environments will little changes.