How do I create an Application Pool on IIS 6.0 using a PowerShell script?
This is what I have come up with so far …
$appPool = [wmiclass] 'root\MicrosoftIISv2:IIsApplicationPool'
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It isn’t the most obvious process, but here is what worked for me..
You might get an error with the call to Put(), but calling it a second (or third) time should make it work. This is due to an issue with PowerShell V1 and WMI.