Wednesday, October 21, 2009

How to install sharepoint 40 application templates

Here are a few simple steps to install Microsoft Sharepoint fantastic 40 application templates.


Installation Guidelines: (follow them in the order specified)

a) Copy all the 40 application templates in your local hard-drive, lets say you Copy them in C:/Templates directory

Note: Before installtion, please make sure your Windows SharePoint Services Administration service is running.


b) In order to install the set of 20 application templates having .stp as extension, create a batch file namely: STPtemplate.bat, create it in the same directory, where you have installed the application templates.

Copy the following code inside this batch file:

for %%f in (*.stp) do "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addtemplate -filename %%f -title %%f


Run this batch file and your 20 application templates are installed without any effort.


c) In order to install the next set of 20 application templates having .wsp as extension,

i) Create a batch file namely: WSPGACSolution.bat in the same directory

Copy the following code inside this batch file:


for %%f in (*.wsp) do "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o addsolution -filename %%f


Run this batch file.


ii) Create another batch file namely: WSPGacDeployment.bat in the same directory

Copy the following code inside this batch file:

for %%f in (*.wsp) do "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe" -o deploysolution -allowgacdeployment -immediate -name %%f


Run this batch file to deploy the solution in the Global Assembly Cache and do an iisreset thereafter


d) You 're done installing the fantastic 40 application templates provided by sharepoint. Finally you get to see them all, when you create sites in sharepoint

If you find this post helpful, spread this to all the Sharepoint practioners you know...

In case you facwe any issue, post a comment on this blog and i will try to solve your issue...

Friday, October 16, 2009

How to extract the MySite data created on the WSS_Content database in a standalone install and move this to a separate content database then use a new web application to host MySite

Make sure you have this WSS hotfix installed: http://support.microsoft.com/kb/939188/ (Note: This fix is also included in WSSv3 SP1)
1.     Create a new, empty content database in your OLD web application. Let’s call it MySitesContentDB.
2.     Run the following command to enumerate all the site collections in your default content database:
stsadm –o enumsites –url http://oldservername –databasename dev1_SITE > MySites.xml

3.     Open the MySites.xml file that is created in Notepad or another text editor. You’ll see a entry for every site in the content database. Remove any entries that refer to sites that are not MySites. You should be left with a list of all of your MySites. Save the file.
4.     Run the following command to move all of your MySites from the default content database to the new content database:
stsadm –o mergecontentdbs –url http://oldservername –sourcedatabasename dev1_SITE -destinationdatabasename MySitesContentDB –operation 3 –filename MySites.xml

5.     Create a NEW web application to host your MySites.
6.     Remove MySitesContentDB from the list of content databases for the OLD web application.
7.     Add MySitesContentDB to the list of content databases for the NEW web application.
8.     Update the SSP so that it uses the NEW web application as the MySite web application.
9.     Test and make sure everything looks good.

what is sharepoint ?

Microsoft SharePoint, also known as Microsoft SharePoint Products and Technologies, is a collection of products and software elements that includes, among a growing selection of components, web browser based collaboration functions, process management modules, search modules and a document-management platform.SharePoint can be used to host web sites that access shared workspace, information stores and documents, as well as host defined applications such as wikis and blogs. All users can manipulate proprietary controls called "web parts" or interact with pieces of content such as lists and document libraries.

The term "SharePoint" can collectively refer to a number of products ranging from the base platform to various services. The platform is Windows SharePoint Services (WSS), which is included with Windows Server and available as a free download for those with Windows Server licenses. Services such as Microsoft Office SharePoint Server (MOSS) provide additional functionality and features and are licensed accordingly.

Microsoft identifies the following as part of the current SharePoint products and technologies family:

* Windows SharePoint Services 3.0 (WSS)
* Search Server 2008 Express
* Search Server 2008
* Forms Server 2007
* Microsoft Office SharePoint Server 2007 MOSS Standard
* Microsoft Office SharePoint Server 2007 MOSS Enterprise
* Microsoft Office Groove Server 2007
* Microsoft Office Project Server 2007