Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Fri, 26 Oct 2007 11:58:17 +0200,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


How do I change HTTPErrors default settings with WMI   
Hello

I'm trying to change the default settings for HTTPErrors on a number of 
webservers with WMI.
I'm using the WMI Code Generator to locate the correct class and property.
I'm looking under root\MicrosoftIISv2 and have found a HTTPError property 
under the following classes:
*    IIsWebServerSetting
*    IIsWebServiceSetting
*    IIsWebVirtualDirSetting
but they are all empty. I read on MSDN that some IIS settings are Internal 
Default values so I changed a few of the default HTTPErrors thinking that if 
I did that the values must be written somewhere. After that the HTTPErrors 
property was still empty. I checked the metabase to see if I could locate 
the setting that way and found that the metabase stored my changes under the 
<IISWebService> node.

My question is:
An I looking at the wrong property, class or namespace through WMI or is 
there a bug here?

Regards
Bo
date: Fri, 26 Oct 2007 11:58:17 +0200   author:   Bo Riis

Re: How do I change HTTPErrors default settings with WMI   
Bo Riis wrote:
> Hello
>
> I'm trying to change the default settings for HTTPErrors on a number
> of webservers with WMI.
> I'm using the WMI Code Generator to locate the correct class and
> property. I'm looking under root\MicrosoftIISv2 and have found a
> HTTPError property under the following classes:
> *    IIsWebServerSetting
> *    IIsWebServiceSetting
> *    IIsWebVirtualDirSetting
> but they are all empty. I read on MSDN that some IIS settings are
> Internal Default values so I changed a few of the default HTTPErrors
> thinking that if I did that the values must be written somewhere.
> After that the HTTPErrors property was still empty. I checked the
> metabase to see if I could locate the setting that way and found that
> the metabase stored my changes under the <IISWebService> node.
>
> My question is:
> An I looking at the wrong property, class or namespace through WMI or
> is there a bug here?
>
I don't know the answer to this. If you get no response here after a
reasonable amount of time, you might try the
microsoft.public.inetserver.iis group

-- 
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
date: Fri, 26 Oct 2007 09:10:12 -0400   author:   Bob Barrows [MVP] com

Re: How do I change HTTPErrors default settings with WMI   
"Bo Riis"  wrote in message
news:6326C9E9-78EA-4CD8-BC74-A311E3ECDC03@microsoft.com...
> Hello
>
> I'm trying to change the default settings for HTTPErrors on a number of
> webservers with WMI.
> I'm using the WMI Code Generator to locate the correct class and property.
> I'm looking under root\MicrosoftIISv2 and have found a HTTPError property
> under the following classes:
> *    IIsWebServerSetting
> *    IIsWebServiceSetting
> *    IIsWebVirtualDirSetting
> but they are all empty. I read on MSDN that some IIS settings are Internal
> Default values so I changed a few of the default HTTPErrors thinking that
if
> I did that the values must be written somewhere. After that the HTTPErrors
> property was still empty. I checked the metabase to see if I could locate
> the setting that way and found that the metabase stored my changes under
the
> <IISWebService> node.
>
> My question is:
> An I looking at the wrong property, class or namespace through WMI or is
> there a bug here?

HttpErrors is the correct property.  It is documented here:-

http://msdn2.microsoft.com/en-us/library/ms525083.aspx

This article indicates the places where the property can be defined and as
you rightly indentified there is an internal default if its not defined
anywhere.

On common gotcha is that this is an multi-string property define all
HttpErrors.  If you only want to define one or two custom handlers you need
to include a complete list of all other handlers as well.


-- 
Anthony Jones - MVP ASP/ASP.NET
date: Sat, 27 Oct 2007 21:58:09 +0100   author:   Anthony Jones

Re: How do I change HTTPErrors default settings with WMI   
"Anthony Jones"  wrote in message 
news:OdqfXwNGIHA.4808@TK2MSFTNGP05.phx.gbl...
> "Bo Riis"  wrote in message
> news:6326C9E9-78EA-4CD8-BC74-A311E3ECDC03@microsoft.com...
>> Hello
>>
>> I'm trying to change the default settings for HTTPErrors on a number of
>> webservers with WMI.
>> I'm using the WMI Code Generator to locate the correct class and 
>> property.
>> I'm looking under root\MicrosoftIISv2 and have found a HTTPError property
>> under the following classes:
>> *    IIsWebServerSetting
>> *    IIsWebServiceSetting
>> *    IIsWebVirtualDirSetting
>> but they are all empty. I read on MSDN that some IIS settings are 
>> Internal
>> Default values so I changed a few of the default HTTPErrors thinking that
> if
>> I did that the values must be written somewhere. After that the 
>> HTTPErrors
>> property was still empty. I checked the metabase to see if I could locate
>> the setting that way and found that the metabase stored my changes under
> the
>> <IISWebService> node.
>>
>> My question is:
>> An I looking at the wrong property, class or namespace through WMI or is
>> there a bug here?
>
> HttpErrors is the correct property.  It is documented here:-
>
> http://msdn2.microsoft.com/en-us/library/ms525083.aspx
>
> This article indicates the places where the property can be defined and as
> you rightly indentified there is an internal default if its not defined
> anywhere.
>
> On common gotcha is that this is an multi-string property define all
> HttpErrors.  If you only want to define one or two custom handlers you 
> need
> to include a complete list of all other handlers as well.
>
>
> -- 
> Anthony Jones - MVP ASP/ASP.NET
>
>
Thanks Anthony

As I read your reply I need to put something like this:

"400,*,FILE,C:\WINDOWS\help\iisHelp\common\400.htm"
"401,1,FILE,C:\WINDOWS\help\iisHelp\common\401-1.htm"
"401,2,FILE,C:\WINDOWS\help\iisHelp\common\401-2.htm"
"401,3,FILE,C:\WINDOWS\help\iisHelp\common\401-3.htm"
"401,4,FILE,C:\WINDOWS\help\iisHelp\common\401-4.htm"
"401,5,FILE,C:\WINDOWS\help\iisHelp\common\401-5.htm"
"401,7,FILE,C:\WINDOWS\help\iisHelp\common\401-1.htm"
"403,1,FILE,C:\WINDOWS\help\iisHelp\common\403-1.htm"
"403,2,FILE,C:\WINDOWS\help\iisHelp\common\403-2.htm"
"403,3,FILE,C:\WINDOWS\help\iisHelp\common\403-3.htm"
"403,4,FILE,C:\WINDOWS\help\iisHelp\common\403-4.htm"
"403,5,FILE,C:\WINDOWS\help\iisHelp\common\403-5.htm"
"403,6,FILE,C:\WINDOWS\help\iisHelp\common\403-6.htm"
"403,7,FILE,C:\WINDOWS\help\iisHelp\common\403-7.htm"
"403,8,FILE,C:\WINDOWS\help\iisHelp\common\403-8.htm"
"403,9,FILE,C:\WINDOWS\help\iisHelp\common\403-9.htm"
"403,10,FILE,C:\WINDOWS\help\iisHelp\common\403-10.htm"
"403,11,FILE,C:\WINDOWS\help\iisHelp\common\403-11.htm"
"403,12,FILE,C:\WINDOWS\help\iisHelp\common\403-12.htm"
"403,13,FILE,C:\WINDOWS\help\iisHelp\common\403-13.htm"
"403,15,FILE,C:\WINDOWS\help\iisHelp\common\403-15.htm"
"403,16,FILE,C:\WINDOWS\help\iisHelp\common\403-16.htm"
"403,17,FILE,C:\WINDOWS\help\iisHelp\common\403-17.htm"
"403,18,FILE,C:\WINDOWS\help\iisHelp\common\403.htm"
"403,19,FILE,C:\WINDOWS\help\iisHelp\common\403.htm"
"403,20,FILE,C:\WINDOWS\help\iisHelp\common\403-20.htm"
"404,*,URL,/Public/404.aspx"
"404,2,FILE,C:\WINDOWS\help\iisHelp\common\404b.htm"
"404,3,FILE,C:\WINDOWS\help\iisHelp\common\404b.htm"
"405,*,FILE,C:\WINDOWS\help\iisHelp\common\405.htm"
"406,*,FILE,C:\WINDOWS\help\iisHelp\common\406.htm"
"407,*,FILE,C:\WINDOWS\help\iisHelp\common\407.htm"
"412,*,FILE,C:\WINDOWS\help\iisHelp\common\412.htm"
"414,*,FILE,C:\WINDOWS\help\iisHelp\common\414.htm"
"415,*,FILE,C:\WINDOWS\help\iisHelp\common\415.htm"
"500,12,FILE,C:\WINDOWS\help\iisHelp\common\500-12.htm"
"500,13,FILE,C:\WINDOWS\help\iisHelp\common\500-13.htm"
"500,15,FILE,C:\WINDOWS\help\iisHelp\common\500-15.htm"
"500,16,FILE,C:\WINDOWS\help\iisHelp\common\500.htm"
"500,17,FILE,C:\WINDOWS\help\iisHelp\common\500.htm"
"500,18,FILE,C:\WINDOWS\help\iisHelp\common\500.htm"
"500,19,FILE,C:\WINDOWS\help\iisHelp\common\500.htm"

Regards
Bo
date: Wed, 31 Oct 2007 12:13:50 +0100   author:   Bo Riis

Re: How do I change HTTPErrors default settings with WMI   
"Bo Riis"  wrote in message
news:DF0FF03E-BD44-4193-A8C6-4D3291AD8A91@microsoft.com...
>
> "Anthony Jones"  wrote in message
> news:OdqfXwNGIHA.4808@TK2MSFTNGP05.phx.gbl...
> > "Bo Riis"  wrote in message
> > news:6326C9E9-78EA-4CD8-BC74-A311E3ECDC03@microsoft.com...
> >> Hello
> >>
> >> I'm trying to change the default settings for HTTPErrors on a number of
> >> webservers with WMI.
> >> I'm using the WMI Code Generator to locate the correct class and
> >> property.
> >> I'm looking under root\MicrosoftIISv2 and have found a HTTPError
property
> >> under the following classes:
> >> *    IIsWebServerSetting
> >> *    IIsWebServiceSetting
> >> *    IIsWebVirtualDirSetting
> >> but they are all empty. I read on MSDN that some IIS settings are
> >> Internal
> >> Default values so I changed a few of the default HTTPErrors thinking
that
> > if
> >> I did that the values must be written somewhere. After that the
> >> HTTPErrors
> >> property was still empty. I checked the metabase to see if I could
locate
> >> the setting that way and found that the metabase stored my changes
under
> > the
> >> <IISWebService> node.
> >>
> >> My question is:
> >> An I looking at the wrong property, class or namespace through WMI or
is
> >> there a bug here?
> >
> > HttpErrors is the correct property.  It is documented here:-
> >
> > http://msdn2.microsoft.com/en-us/library/ms525083.aspx
> >
> > This article indicates the places where the property can be defined and
as
> > you rightly indentified there is an internal default if its not defined
> > anywhere.
> >
> > On common gotcha is that this is an multi-string property define all
> > HttpErrors.  If you only want to define one or two custom handlers you
> > need
> > to include a complete list of all other handlers as well.
> >
> >
> > -- 
> > Anthony Jones - MVP ASP/ASP.NET
> >
> >
> Thanks Anthony
>
> As I read your reply I need to put something like this:
>
> "400,*,FILE,C:\WINDOWS\help\iisHelp\common\400.htm"
.
.
.
> "403,20,FILE,C:\WINDOWS\help\iisHelp\common\403-20.htm"
> "404,*,URL,/Public/404.aspx"
> "404,2,FILE,C:\WINDOWS\help\iisHelp\common\404b.htm"
.
.
.
> "500,19,FILE,C:\WINDOWS\help\iisHelp\common\500.htm"
>

yep thats it.  It's a bit annoying when all you want is a custom 404 handler
which I reckon makes up 90% of the usage of this property.


-- 
Anthony Jones - MVP ASP/ASP.NET
date: Wed, 31 Oct 2007 22:14:30 -0000   author:   Anthony Jones

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us