Solved

Sharepoint STSadm command to build a new site from a template

Posted on 2010-11-29
1
496 Views
Last Modified: 2012-05-10
I am pretty new to sharepoint administration and i am trying to learn the STSadm command line. I would like to automate the creation of new sites. I have a test machine with sharepoint installed and i was trying to run the following command but it was failing.

stsadm -o createsite -url http://spsandbox/testsite/newtest -owneremail email@company.com -ownerlogin domain\myusername

When trying to run this i receive the following message

"Another site already exists at http://spsandbox. Delete this site before attempt
ing to create a new site with the same URL, choose a new URL, or create a new in
clusion at the path you originally specified."

Im not sure what is going on here as I would like to create a new site under the parent site but it looks like it wants to overwrite the parent site?

I have attached a screenshot of the main site page. I would think that creating a new site would just add it to the top navigation bar.
1.jpg
0
Comment
Question by:Joseph Daly
1 Comment
 
LVL 6

Accepted Solution

by:
Sushanta Sahu earned 500 total points
ID: 34231592
Hi,

The site you have is a site collection and the command you are using to create a site is actually a command for site collection creation.

If you want to create a site under the site which is already there, you have to create a sub site. To automate the sub site creation STSADM createweb command should be used

Refer: http://technet.microsoft.com/en-us/library/cc287718%28office.12%29.aspx

Let me know how it goes.

0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Learn about cloud computing and its benefits for small business owners.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question