fusiongrokker

Easily create/list/update/delete IIS mappings from ColdFusion

When I needed to create mappings on the fly for a client, I did some reading and wrote a quick component to make it easier. (Hat tip: Eric Jones) Once I had that done, it was obvious to me that I should extrapolate this into a full CRUD object.

Enter IISVDM (IIS Virtual Directory Manager).

It uses CFExecute to wrap the VBScript "iisvdir.vbs" included with IIS6.0. Obviously, then, there are some fairly steep technical requirements: CFMX6+, to use components, IIS6.0 (5.0 and earlier don't have the VBScript tool available), and appropriate permissions to run CFExecute. I should note that I've only tested with CF8, so there may be a syntax difference or two. (Please point those out if you find them!)

Of course, using CFExecute and VBScript imposes a certain security risk. Please do make sure you secure access to any pages that use the component.

I'm working on documentation and I've included some example scripts in the download.

I'm also working on improving the return values from the create/edit/delete functions so that not only do you get a success flag (bool), but also error messages (if any), and the output of the cfexecute(s).

Posted in ColdFusion | iisvdm | My projects