Jump to content

Recommended Posts

Posted

Wondering if anyone knows if it is possible to change IIS settings on a WIN2K3 Unattended install. The ref.chm doesn't have any winnt.sif options for specific IIS settings.

What im looking to do is change the default FTP settings to turn anonymous access off and give write permissions to the administrator on the default FTP server.

I'm trying to find the best way to do this.

My next step is comparing the regisrty before and after the change and the metadata before and after the change to see if i can 'merge' registry or metadata settings during an install with RunOnce or the commands file.

Anyone else have any ideas?

Thanks!

  • 11 months later...

Posted (edited)

I am trying to do the same...

A good start might be the adsutil.vbs script inside the AdminScript folder of IIS ...

CF

[Edit]

It works ...

On a working machine I configured IIS, created a virtual folder (uploads) and gave some permissions. Then from a cmd prompt I got the properies of that path:

cscript.exe adsutil.vbs Enum W3SVC/1/ROOT/uploads

and this list all the available parameters for this path:

KeyType : (STRING) "IIsWebVirtualDir"

AppRoot : (STRING) "/LM/W3SVC/1/Root/uploads"

AppFriendlyName : (STRING) "uploads"

AppIsolated : (INTEGER) 2

EnableDefaultDoc : (BOOLEAN) True

DirBrowseShowDate : (BOOLEAN) True

DirBrowseShowTime : (BOOLEAN) True

DirBrowseShowSize : (BOOLEAN) True

DirBrowseShowExtension : (BOOLEAN) True

DirBrowseShowLongDate : (BOOLEAN) True

AccessRead : (BOOLEAN) True

AccessWrite : (BOOLEAN) True

AccessExecute : (BOOLEAN) False

AccessScript : (BOOLEAN) True

AccessSource : (BOOLEAN) False

AccessNoRemoteRead : (BOOLEAN) False

AccessNoRemoteWrite : (BOOLEAN) False

AccessNoRemoteExecute : (BOOLEAN) False

AccessNoRemoteScript : (BOOLEAN) False

EnableDirBrowsing : (BOOLEAN) True

Path : (STRING) "F:\My Documents\Web Uploads"

AccessFlags : (INTEGER) 515

DirBrowseFlags : (INTEGER) 3221225534

On a virtual machine that has IIS installed but not configured I was able to recreate the above parameters by using:

cscript.exe adsutil.vbs SET W3SVC/1/ROOT/uploads/<ParameterName> "<ParameterValue>"

It is a long list but it works ...

I would love to see a better/faster way to do that though ;)

(Another way would be to use metaedit.exe although I am not sure if it supports cmdline options)

CF

Edited by cancerface
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...