Solved

Sharepoint STSadm command to build a new site from a template

Posted on 2010-11-29
1
463 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now