?
Solved

Sharepoint STSadm command to build a new site from a template

Posted on 2010-11-29
1
Medium Priority
?
522 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
Suggested Courses

718 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