Solved

IIS Handler Mappings - is there a way to automate adding a new one on installation?

Posted on 2008-06-20
2
578 Views
Last Modified: 2010-04-21
We have a web application that runs locally on customers computers/networks.   I've recently added  a way to generate forms.  In it we have 3 customer handler mappings that need to be added to IIS.   Due to the end users abilities, it is highly unlikely any of them could add these on their own.   I have looked and cannot find any reference to anyone that has successfully done this with IIS 5, 6, and 7 as possible targets.   Does anyone know a way to do this programmatically?  Is it possible?

So far in Vista with IIS7, when I've installed my application it will add the Handler Mappings *sometimes*, not all the time.  That is pulling from the web.config of my application, in the system.webServer, handlers section.   Like said though it is not consistent.   Anyone with any ideas?

Thanks
0
Comment
Question by:acco_is
2 Comments
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 21852203
Hi,

for IIS6, use adslutil.vbs to script your web site changes (in c:\inetpub\adminscripts by default)

for IIS7, AppCmd.exe is used for the similar purpose.

Cheers.
0
 

Author Closing Comment

by:acco_is
ID: 31474014
Using adsutil.exe should work with both IIS6 and IIS7.   Finding all the syntax needed for making these adjustments will be the hard part.  Thanks, its got me headed in the right direction.  
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to install Windows Server tools on Windows 7 Enterprise. 9 47
windows explorer default details view 10 56
paging file usage  > 95% for 30 min about 12 29
Problem to file 13 39
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question