Re: IIS 6.0 Unique ID generation

From: Kristofer Gafvert (kgafvert_at_NEWSilopia.com)
Date: 11/05/04


Date: Fri, 5 Nov 2004 10:18:02 +0100

iisweb.vbs (in the code) uses IIsWebService.CreateNewSite to create new
websites on IIS 6.0.

Just for your interest :-)

-- 
Regards,
Kristofer Gafvert
http://www.ilopia.com
"Bernard" <qbernard@hotmail.com.discuss> wrote in message
news:eQrNV9uwEHA.1300@TK2MSFTNGP14.phx.gbl...
> I'm not a dev guy. but I don't think it needs the ID to create the
website.
> take a look at the built-in script.
>
> IISweb.vbs
>
> try iisweb /create
>
> it only ask you for the web root path, site description, ip, port, and
host
> header name.
>
> -- 
> Regards,
> Bernard Cheah
> http://www.tryiis.com/
> http://support.microsoft.com/
> http://www.msmvps.com/bernard/
>
>
>
> "Sıfırınc?Murat" <@> wrote in message
> news:eDLaotmwEHA.1512@TK2MSFTNGP12.phx.gbl...
> > I am hosting multiple web sites on a w2k3 server and want to create web
> > sites through an application to reduce the time spent for web site
> creation.
> > In order to create new web sites I need to assign an empty ID for
> > System.DirectoryServices class, so that it can create a new web site
with
> > that ID. I could easily enumerate used IDs and generate one that is not
in
> > use and create the new site with that ID but I know MMC uses an
algorithm
> to
> > generate IDs with respect to the ServerComment property (or website
name)
> > and I want my aplication to use the same procedure for the sake of
> > compatibility. This is the reason.
> >
> >
> > "David Wang [Msft]" <someone@online.microsoft.com> wrote in message
> > news:enYZDkmwEHA.1396@tk2msftngp13.phx.gbl...
> > > Using the administration APIs you can easily enumerate available
> websites,
> > > locate ones matching your criteria, and retrieve its ID.
> > >
> > > Can you please give the reason(s) why you need to be able to predict
the
> > > Website ID before creating the website?  Are you also aware that you
can
> > > actually specify the ID for a website (you get an exception if the ID
is
> > > already used)?
> > >
> > > Anyways, I cannot think of a reason why anyone needs to know the
> > algorithm,
> > > including Microsoft...
> > >
> > > -- 
> > > //David
> > > IIS
> > > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > > //
> > > "Sıfırınc?Murat" <@> wrote in message
> > > news:OkEMKMlwEHA.1512@TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > >
> > > As everybody knows, IIS 6.0 assigns unique IDs based on the specified
> web
> > > site name. I have been developing an programmatic administration tool
> for
> > > IIS 6.0 and I need the algorithm how IIS generates these identifiers.
I
> > have
> > > been through MSDN and Google search but have nothing usable.
> > >
> > >
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Bypass proxy server for local addresses
    ... I'm having troubles surfing on my Web Sites published through my IIS on W2k3 R2 SP2 inside my network. ... When I go to IE and check option "Bypass proxy server for local addresses" it gives me Error HTTP 403, but when I configure for example test.mycompany.com on the Advanced button on IE, I can get into my web site. ... If I have 20 websites and 1000 users do I have to create a Group Policy or add them one by one even if I'm checking the Bypass option? ...
    (microsoft.public.isaserver)
  • Re: Multiple ISPs?
    ... maximize ranking (assuming you own a few different web sites that are ... I read that having websites on the same server linked to each ... Google could suspect a high volume of links added at one time to be ...
    (alt.internet.search-engines)
  • Re: IIS Configuration
    ... IIS does not care how the request makes it to the server, ... Can I have two websites on one webserver? ... Please have in mind the risks of exposing a server to the public. ... Use Host Header Names to Configure Multiple Web Sites in Internet ...
    (microsoft.public.inetserver.iis)
  • Re: Hosting Websites on SBS2003 with ISA2000
    ... websites are supposed to sit on the IIS of the SBS. ... ISA is installed. ... may I know what these web sites used for? ...
    (microsoft.public.windows.server.sbs)
  • Re: IIS Domain Names
    ... Do you mean that you want to have two websites hosted on this machine? ... >>> the web sites inside how can i get past this problem? ... >>>>I think that you are looking for Host Headers. ... >>>>> hi im currently useing windows xp pro and im useing> the ...
    (microsoft.public.inetserver.iis)