I have a legacy website creation script written in VBScript which configures a number of virtual directories on the default web site using WMI. I now have a requirement to configure the virtual directories for ASP.NET and can’t for the life of me figure out how to script this configuration.
I’m trying to set a number of parameters that are accessed via the ‘ASP.NET’ tab of the virtual directory properties. In particular, I need to add some application settings (key, value pairs) and set the globalization response encoding.
Nothing I’ve seen anywhere on the web has got me anywhere close to being able to do this in WMI/VBScript. Can anyone put me out of my misery?
Thanks,
Al.
So, having not come across any way of programmatically setting the ASP.NET stuff in IIS6, I ended up just writing out the appropriate sections in the web.config file. For my limited purposes, this is OK as IIS6 does not usually create a web.config for my website so I don’t have to worry about parsing the existing file and putting new stuff in the right order.
Not ideal (not even close!), but it gets me going and since the future is IIS7+ where I can do this kind of stuff, I’m not going to lose any more sleep over it 🙂
Thanks for all input.
Al.