in reply to Setting IIS Specific Permissions
This will disable write and execute permissions on the website. However, if any subfolders have "explicitly set" (rather than inherited) different settings, then you will need to change those also. You can get a list of paths which have set the permission by using the object->GetDataPaths(property, AttributeFlag) method.use strict; use Win32::OLE qw(in); my $IISServer = "LocalHost"; my $w3serverID = 3; #Connect to the metabase directly onto the root of the third website my $iis_w3c = Win32::OLE->GetObject("IIS://$IISServer/W3SVC/$w3serverI +D/Root") or die "Can't connect to IIS"; $iis_w3c->{AccessRead} = 1; $iis_w3c->{AccessScript} = 1; $iis_w3c->{AccessWrite} = 0; $iis_w3c->{AccessExecute} = 0; #Save this info to the metabase $iis_w3c->SetInfo();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Setting IIS Specific Permissions
by enoch (Chaplain) on Aug 01, 2001 at 20:48 UTC |