Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

IIS GetObject by description ?

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  Win2003 SP1 Upgrade Problem  
Author Message
dror.treves

External


Since: May 01, 2005
Posts: 2



(Msg. 1) Posted: Sun May 01, 2005 8:56 am
Post subject: IIS GetObject by description ?
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi all !

I'm using ADSI with GetObject("IIS://localhost/W3SVC/1") and it works
fine.

Is there any way to bind to IIS using the web site description rather
than the id ?

I'm looking for our product web site without knowing which id it has in
the metabase.


Thanks in advance, hope to get answers.
Dror Treves.

 >> Stay informed about: IIS GetObject by description ? 
Back to top
Login to vote
kgafvert

External


Since: Aug 23, 2003
Posts: 3146



(Msg. 2) Posted: Sun May 01, 2005 9:33 am
Post subject: Re: IIS GetObject by description ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

No, it is not possible. You need to use the ID. You can however find the
ID from the website description.

I wrote some example code for this a few days ago, using C#. Maybe you can
find it useful:

<a style='text-decoration: underline;' href="http://www.gafvert.info/extra/findidbyname.cs.html" target="_blank">http://www.gafvert.info/extra/findidbyname.cs.html</a>

Good Luck!

--
Regards,
Kristofer Gafvert
<a style='text-decoration: underline;' href="http://www.gafvert.info" target="_blank">www.gafvert.info</a> - My Articles and help
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">www.ilopia.com</a>


dror.treves.RemoveThis@gmail.com wrote:

 > Hi all !
 >
 > I'm using ADSI with GetObject("IIS://localhost/W3SVC/1") and it works
 > fine.
 >
 > Is there any way to bind to IIS using the web site description rather
 > than the id ?
 >
 > I'm looking for our product web site without knowing which id it has in
 > the metabase.
 >
 >
 > Thanks in advance, hope to get answers.
 > Dror Treves.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS GetObject by description ? 
Back to top
Login to vote
dror.treves

External


Since: May 01, 2005
Posts: 2



(Msg. 3) Posted: Wed May 04, 2005 1:45 am
Post subject: Re: IIS GetObject by description ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks!

I used vbs and ADSI :

Dim objIIS
Set objIIS = GetObject("IIS://localhost/W3SVC")

For Each Site In objIIS
If IsNumeric(Site.name) Then
  If (Site.servercomment="") Then
...
  End If
End If
Next<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS GetObject by description ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 5 and getObject probs... - Is there ONE way to use getObject via ASP without log on as an Administrator? I tried this but doesn't work. 1) I created an account "example" 2) I added it to Operators of my web site. 3) I clear the selection in "Anonymous access&quot...

getobject fails - I have an executable cgi application that uses getobject to create and then late bind to an automation server. For example: Set oApp = CreateObject("This.Application") Set oApp = GetObject(, "This.Application") Keep in mind that thi...

Vista - IIS - GetObject() - Hi Everyone, On a Vista machine I have installed all options for IIS including the compatibility sub features. But a regular call like the following Set IISOBJ = getObject("IIS://LocalHost/W3SVC") gives me error 70 - Permission denied. I am...

Permission denied: 'GetObject' - I'm building an ASP app that uses Windows Authentication (IWA). I have an authentication routine that assesses if & how the user can use the application (see code snippet below). Users of a particular group have full permissions (configured via IIS...

Use of GetObject("IIS://Localhost/W3SVC") - Ciao! Where do I find all Methods and Function GetObject("IIS://Localhost/W3SVC") ? I try to search in M$, but I didn't find the complete list. Daniele
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]