This newbie snippet get a number of a IIS web site and modify it in order to let it to process asp pages that will run in a separate memory space, with a bandwidth of 64 kb and with a different Anonymous user (you must put it in the permission of the physical path )
$w3num=Win32::OLE->GetObject("IIS://localhost/W3SVC/$web_num")||die Wi +n32::OLE->LastError(); $w3num->{MaxBandWidth}=65536; $w3num->SetInfo(); $w3root=Win32::OLE->GetObject("IIS://localhost/W3SVC/$web_num/ROOT")|| +die Win32::OLE->LastError(); $w3root->AppCreate(0);#||warn Win32::OLE->LastError(); $w3root->{AppRoot}="/LM/W3SVC/$web_num/ROOT"; $w3root->{AnonymousUserName}=$Domain."\\".$User; $w3root->{AppIsolated}=1; $w3root->{AppFriendlyName}=('Default Application'); $w3root->{AccessScript}=('True'); $w3root->SetInfo();
For me the most interesting was discovery that bandwidth was a site property and other stuff are a site/Root properties..

ciao lor*

In reply to modify IIS site by Discipulus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.