Thursday, December 8, 2011

Restricting web page access

===================================
location path="BusinessMessages";
system.web;
authorization;
deny users="*";
/deny;
/system.web;
/location;
===================================

Thursday, November 24, 2011

Choose backup and recovery tools - MOSS 2007

http://technet.microsoft.com/en-us/library/cc263427%28office.12%29.aspx

Backup script using STSADM

@echo off
echo ===============================================================
echo Back up the farm to C:\backup
echo ===============================================================
cd %COMMONPROGRAMFILES%\Microsoft Shared\web server extensions\12\BIN
@echo off
stsadm.exe -o backup -directory "\backup" -backupmethod full
echo completed

Wednesday, November 23, 2011

The RSS Viewer web part is missing from the "Add Web Part" menu

To fix this -
In order to use the RSS Viewer on a publishing site, you need to go to your top level site, select "Site Actions"-->"Site Settings"-->"Modify All Site Settings".
1.
Under "Site Collection Administration", click "Site Collection Features" and enable "Office SharePoint Server Enterprise Site Collection features".
2.
If the issue persists then do the following-

1. In SharePoint Central Administration, go to Operations.

2. Under "Upgrade and Migration" select "Enable Features On Existing Sites".

3. Select the checkbox and click OK.

Tuesday, August 9, 2011

Merging ULS logs across a farm!!

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –StartTime "06/09/2008 16:00" –EndTime "06/09/2008 16:15"


--------------EXAMPLE 1-----------------

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" -Overwrite

This example merges the last hour of log data from all farm computers with no filtering.

--------------EXAMPLE 2-----------------

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –Area Search

This example merges the last hour of log data from the Search area.

--------------EXAMPLE 3-----------------

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –Area "SharePoint Foundation","Web Analytics Services"

This example merges the last hour of log data from the SharePoint Foundation and Web Analytics Services areas.

--------------EXAMPLE 4-----------------

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –Level High

This example merges the log data of level High or higher.

--------------EXAMPLE 5-----------------

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –StartTime "06/09/2008 16:00" – EndTime "06/09/2008 16:15"

This example merges the log data for events in a particular time range, which is culture-specific to the United States.

--------------EXAMPLE 6-----------------

Merge-SPLogFile –Path "C:\Logs\FarmMergedLog.log" –Overwrite –Message "*permission changed*"

This example merges the log data for events with permission changed in the message text.

--------------EXAMPLE 7-----------------

Merge-SPLogFile -Overwrite -Path d:\1.log -ContextFilter "name=timer job*" -Area "*search*"

This example merges the log data for all search timer jobs.

--------------EXAMPLE 8-----------------

Merge-SPLogFile -Overwrite -Path d:\2.log -ContextFilter "user=contoso?joeuser"

Thursday, August 4, 2011

Wrap a User Control inside a Web Part using WSPBuilder

http://oidatsmyleg.wordpress.com/2009/07/23/wrap-a-user-control-inside-a-web-part-using-wspbuilder/

Friday, June 3, 2011

Best SharePoint places to look for!!

0. http://blogs.msdn.com/sharepoint
1. http://blogs.msdn.com/b/rogerla/
2. http://blogs.msdn.com/b/ericwhite/archive/2010/10/26/sharepoint-developer-building-blocks-technologies-for-creating-sharepoint-applications.aspx
3. http://andrewconnell.com/blog
4. http://blah.winsmarts.com
5. http://sharepoint.alltop.com/
6. http://www.sharepointnutsandbolts.com/
7. http://msdn.microsoft.com/en-us/office/dd638301.aspx (Dev best practices)

Monday, May 16, 2011

AppCmd to list App pool config and properties

Appcmd list apppool "" /config>c:/results.txt

Friday, March 25, 2011

Second level Site Admin Recycle bin

End user Recycle Bin items :
_layouts/AdminRecycleBin.aspx

Deleted from end user Recycle Bin:
_layouts/AdminRecycleBin.aspx?View=2

Thursday, March 17, 2011

Your license conversion operation failed. Check the error logs for details.

Solution is IISRESET :-) Also make sure the Administration service is up and running!