SharePoint 2010: creating a site in a sitecollection automatically - sharepoint-2010

I am looking at ways of automating creation of sites in a site collection in SharePoint 2010. Actually, for some load/stress test, I need to create around 100 sites in a site collection. I can create a site from the SharePoint admin site. But I wish to create large number of them and possibly using some automation.
Please let me know possible ways.

stsadm.exe is no longer available for Sharepoint 2010
However you use cmdlets: New-SPSite
Like: New-spsite –url http://someWeb/sites/someSite -OwnerAlias domain\username -template STS#0

stsadm.exe is still available in SharePoint 2010.

Related

Extracting all List Content from multiple Lists from a Site Collection from a SharePoint 2010 Farm

i am a Sharepoint administrator of a small farm. One of our solution provider has created a huge amount of WebSites at an SharePoint 2010 that have a hierachialy order. And every WebSite has a Custom list with the name "User. Now i want to extract from every WebSite this list into one csv file. The best would be to also extract the Name of the WebSite directly as a new column.
I understand that i have to use the SPSiteDataQuery Class but i am new to developing for sharepoint so i am not sure where to start. Also i would like to have it to run weekly, like some kind of service.
I should note that i have some knowledge in c#
Can someone help me please ?
MG,
Using SharePoint Timer Job you can execute you code weekly base then fetch User data from all webs.

How do I move a link to a folder in SharePoint 2010?

I have a list of external link items that I have created underneath a standard team site on our SharePoint 2010 portal. I then created a number of folders to help categorise the links, but can't find any way of moving those links into the folders I created.
Any advice would be appreciated!
Thanks.
I suggest let end users use the SharePoint designer to do this. SharePoint designer is free to download from Microsoft's website and it's a must-have tool to use SharePoint.

Is there any simple way to crawl all of the SharePoint 2010 site information to save it into a database?

I'm working with Visual Studio 2010 and Sharepoint 2010. I would like to know if there's a way to have a web part that crawls all the data within a SharePoint site so I can save it into a custom db.
You can certainly create a custom web part that will do this. I do not know of an out of the box web part that will work. I began writing something like this when I found SharePoint List Source and Destination. It's a CodePlex project for an SSIS SharePoint adapter. We did not need a user interface for the extract, so we used it successfully last year for transferring data between SQL Server and SharePoint.
Sounds like all you need to do is use the API, OOB web services, or the Client OM to write some code and access the lists directly. Which approach you take depends mostly on where the code will run.
Well I found this article - Document Library Tree View Web Part for SharePoint - it is a Web Part that shows all the info of any of the document libraries within a site. At least I know how to crawl that kind of library.

SharePoint like functionality for Office Documents

We have a document library that is built inhouse. We are migrating to SharePoint 2010 Document Library, but this will be a time consuming process and many very old documents may not get moved to SharePoint at all. I would like to provide the same experience for our users when they open a document from SharePoint or our legacy system. The behavior I would like is like when you open a Workbook or Document that is rendered in the browser using the "Open In Excel" and "Open in Word" button that you get when you open a document stored in a Share Point Document Library.
I am not sure what this technology is called or where to start looking to configure this or integrate into an addin.
Any starting points are much appreciated.
I'm not exactly clear on what your question is, but perhaps you are looking to use the Office Web Apps. This allows you to use the Office applications within the browser.

How can I restrict file types in SharePoint 2010, Any Tutorial

I would need to restrict some file types in sharepoint 2010 like rft's etc.
how can i do that?
It is fairly easy to do this in sharepoint 2010. Check the steps #
http://mysharepointwork.blogspot.com/2010/06/restrict-certain-file-types-in.html