Anyone know how I might create a script to assign a group of extensions to the framework aspnet_isapi.dll file? I have to do about 20 to each website (about 40 sites) and it is incredibly tedious to do it through the IIS Manager interface.
Thanx.
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.
Try this VBScript…I think it will do what you need. Just save it in a .vbs file (change the arrays at the beginning for your websites and extensions) and from a CommandPrompt in the System32 folder run “cscript yourfile.vbs”.
Hope it helps (and works 🙂 ) I have IIS7 so couldn’t fully test in IIS6. Let me know if you run into problems and I’ll try to tweak it.
Oh and Thanks to @Cheeso for some code I “borrowed” from his self-answered question.