IIS - Sub directory permissions

From: Gary Cuthbert (gary.cuthbert@virgin.net)
Date: 10/31/02


From: "Gary Cuthbert" <gary.cuthbert@virgin.net>
Date: Thu, 31 Oct 2002 20:22:08 -0000


Hello, has anyone managed to set permissions for a virtual directory
subdirectory under iis from a vbscript? I have a vbscript that creates
several virtual directories as part of an installer app (using
GetObject("IIS://Localhost/w3svc/1/root") and the like).

The msdn documentation suggests that the same process can be used to set iis
folder permissions (e.g. write access) for subdirectories under the virtual
directory but the call to GetObject with the path to the subdirectory fails.

The odd thing is that i used the example iss admin vb script 'chaccess' and
got the same results however if i load up the control panel 'internet
information services' app and set the option (write access) there, apply,
then remove the setting suddenly chaccess works as does my script (hence
GetObject). Its as if iis only recognises a sub directory once the Internet
Services Manager is prompted to do something with it.

Has anyone managed to do this kind of thing from a script? any help or
advice would be most welcome.

Many thanks
Gary



Relevant Pages

  • Re: OWA / Exchange logon
    ... > You have to go into IIS Manager or Internet Services Manager ... 264941 - XCCC: Changes to Virtual Directory Settings Are Not Maintained: ...
    (microsoft.public.exchange.clients)
  • ASP and security
    ... I've set up IIS and a virtual directory to run a site where I'm following ... some tutorials on ASP and VBSCRIPT. ... Microsoft VBScript runtime ... On my Windows 2000 machine in IIS I have my default website (and my virtual ...
    (microsoft.public.inetserver.iis.security)
  • Removing Public Folder access from OWA
    ... (I have read somewhere that settings from Exchange ... System Manager get copied over the IIS metabase settings every 15 mins). ... There doesn't seem to be a way to delete the 'public' virtual directory from ...
    (microsoft.public.exchange2000.general)
  • Creating a virtual Directory using IIS
    ... I had installed IIS 6 Manager in my Windows XP Professional using SP ... IIS to go to the default websites and create a virtual directory. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SBS2k3 and activesync over the air
    ... the Exchweb virtual directory. ... ONLY 'Basic authentication' is selected ... please restart your IIS service and test your issue again. ... Regarding ActiveSync issue, support code 0x85010014 means error HTTP 500. ...
    (microsoft.public.windows.server.sbs)