The IIS settings that you are looking to maintain are stored in the IIS metabase. The metabase file (MetaBase.bin) does not lend itself to easy direct editing. So you might be better off scripting system commands to output from your Perl program to interface with the MS tools (adsutil.vbs, ...).