General discussion

Locked

How do I enter many sites in Sharepoint

By MC_User ·
I am using Sharepoint 2.0 and have been given the task of creating over 1000 new sharepoint sites. (It's a school) I know there should be a way to do it in a batch file, but they just threw a book at me and said "figure it out"

These will all be identical Document Workspace accounts with one student user each. These are all subsets of a main account.

Can someone point me in the

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by MC_User In reply to How do I enter many sites ...

Point value changed by question poster.

Collapse -

by CG IT In reply to How do I enter many sites ...

First, we have to know what the old Polish Proverb is.....

Collapse -

by MC_User In reply to

Just remember:

If you're not sure it's potato Borscht, there could be orphans working in the mine.

Banacek

Collapse -

by w2ktechman In reply to How do I enter many sites ...

Creating Document Workspaces is pretty easy. A couple of clicks and assigning users. I can see your issue though, creating large #'s can be a task, but I do not think that there is a way around it, especially since you still need to assign a different user for each. Maybe someone else here is more knowledgeable in this area, but I think you just need to do it one by one. It uses a standard template for creating them, so it should not be too tough.

Collapse -

by MC_User In reply to

Creating them one by one will take days. I already have assigned usernames and directories for them. These values are in a spreadsheet. If I could dump them to some kind of batch file for processing with the proper command line commands then I could save my wrist from carpel tunnel.

Collapse -

by CG IT In reply to How do I enter many sites ...

ROFL LMAO potato Borschet!!! I'm sure thats not an Old Polish Proverb but heck wadda I know Ba Da Boom!!

So here is a generic site and subsite tools.

Creating Sites and Subsites from the Command Line
If you are an administrator of the server computer, you can also create sites and subsites by using the Stsadm.exe command-line tool. To create a top-level Web site, use the createsite operation. To create a subsite, use the createweb operation.

Note You can also use the createsiteinnewdb operation to create a top-level Web site and a new content database at the same time. For more information about this operation, see Command-Line Operations.


The createsite operation takes the following required parameters: url, ownerlogin, owneremail, and the following optional parameters: ownername, lcid, sitetemplate, title, description, and quota. For example, to create a top-level Web site called site1 on http://server_name/sites, you would use syntax similar to the following:

stsadm.exe -o createsite -url http://server_name/sites/site1
-ownerlogin <DOMAIN\user> -owneremail <someone@example.com>
-ownername <display name>

The createweb operation requires the url parameter and takes the following optional parameters: lcid, sitetemplate, title, description, and unique (used to specify unique permissions for the subsite). To create a subsite called subsite1 under the site you just created, you would use syntax similar to the following:

stsadm.exe -o createweb -url http://server_name/sites/site1/subsite1

Collapse -

by CG IT In reply to

Use createsite and createweb command line syntax for a script. How to do that I dunno. not to up on repeat action scripts. someone around techrepublic ought to be able to do it.

Collapse -

by CG IT In reply to

but thats the syntax you need to run a script to create your central site for central admin and web sites for each of those kiddies.

Collapse -

by MC_User In reply to

Actually it helped me quite a bit. I think I have everything I need. My boss said that he will write a script to keep feeding in new site info until the loop is done. I found a seperate command to add users to the newly created site.

A couple of questions though. What does the -o part of the command mean? I am working with a site that already has main web page created. All of the docs mention a newly created site. It gives the impression I have to issue the createweb command immediatly after the createsite command. Is is true?

Read the whole library my son, but the cheese will still smell after four days. Banacek

Collapse -

by MC_User In reply to How do I enter many sites ...

This question was closed by the author

Back to Windows Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums