Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Sharepoint STSadm command to build a new site from a template

Posted on 2010-11-29
1
Medium Priority
?
530 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

971 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