Creating multiple websites in IIS 6 for student projects

Every term I had to create between 100 and 200 web sites for students in my classes. Here are the steps I used to create those site in IIS 6. The student’s active directory accounts were already set up by our system administrator. I use FrontPage Server Extensions to allow students to transfer files to the server. Sections in italics below need to be replaced with your settings.

1. Create Directories:

md studentdirectory

2. Assign the student user account relevant permissions:

xcacls studentdirectory /T /E /G studentusername:F

3. Create a virtual directory in IIS for each student:

iisvdir /create “IISsitenamestudentvirtualdirectoryname studentdirectory

4. Create a subweb for each student:

“C:\Program Files\Common Files\Microsoft Shared\web server extensions\50\bin\owsadm” -o install -p 1100 -w studentvirtualdirectoryname -u usernameWithSufficientPermissionsOnServer

5. Give the new subweb unique permissions:

“C:\Program Files\Common Files\Microsoft Shared\web server extensions\50\bin\owsadm” -o setperms -p 1100 -w studentsubwebname -i false -u usernameWithSufficientPermissionsOnServer

6. Give the student the author role on the subweb:

“C:\Program Files\Common Files\Microsoft Shared\web server extensions\50\bin\owsadm” -o roleusers -command add -u studentusername -p 1100 -w studentsubwebname -name Author

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)