Monday, 21 November 2011

Developer DashBoard Enable and Disable

Developer Dashboard is one of the hidden gems available on SharePoint 2010. Often overlooked by administrators, this neat feature, disabled by default, provides performance and tracing information that can be put into good use to debug and troubleshoot page rendering time issues. Pages loading slow or webparts behaving badly? Is it the server resources or the database queries are taking too long?
Enabling this great feature will help you get critical information about execution time, log correlation ID, critical events, database queries, service calls, SPRequests allocation and webpart events offsets.
As I mentioned above, the developer dashboard is turned off by default, but it can be enabled very easy via stsadm or PowerShell.

Enable Developer Dashboard via stsadm:
‘On’ Mode: stsadm -o setproperty -pn developer-dashboard -pv on
‘OnDemand’ Mode: stsadm -o setproperty -pn developer-dashboard -pv ondemand
Disable Developer Dashboard via stsadm:stsadm -o setproperty -pn developer-dashboard -pv off
Enable Developer Dashboard via PowerShell (SharePoint 2010 Management Shell):
SharePoint 2010 Management Shell

‘OnDemand’ Mode:
$sp2010 = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$sp2010.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand;
$sp2010.RequiredPermissions = 'EmptyMask';
$sp2010.TraceEnabled = $true;
$sp2010.Update();
‘On’ Mode:
$sp2010 = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$sp2010.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On;
$sp2010.RequiredPermissions = 'EmptyMask';
$sp2010.TraceEnabled = $true;
$sp2010.Update();
Disable Developer Dashboard – ‘Off’ Mode:
$sp2010 = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$sp2010.DisplayLevel = [Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::Off;
$sp2010.Update();
If you enabled the Developer Dashboard using the OnDemand mode you should see on the left hand side of the ribbon a small icon next to the login credentials.Developer Dashboard Icon If you chose to go with the On mode you will not see the small icon but the Developer Dashboard will be available on the bottom of all your page. To disable the Developer Dashboard just use one of the Off modes on stsadm or PowerShell.
Developer Dashboard

Tuesday, 1 November 2011

If Outlook Inbox full

Create a .pst file while Outlook is running
To create a .pst file while Outlook is running, follow these steps:
1.        On the File menu, point to New, and then click Outlook Data File.
2.        In the Types of storage area, click Office Outlook Personal Folders File (.pst) to create a new Outlook 2003 .pst file. Click Outlook 97-2002 Personal Folders File (.pst) to create a new Outlook .pst file that is compatible with earlier versions of Outlook.
3.        Click OK.
4.        Use the default Outlook folder location, or you can locate a different folder location.
5.        In the File name box, type a name for the new .pst file, or you can use the default name. Click OK.
6.        In the Name box, type a title for the .pst file, or you can use the default title of Personal Folders. The title that you enter in the Name box is the name that is used on the Outlook 2003 All Mail Folders list, and it is applied to any shortcuts that are made for the .pst file on the Outlook Bar. You can also select an encryption setting and a password for the .pst file. After you select the settings that you want, click OK.

Note You cannot change the encryption setting after you create the .pst file. For more information about the encryption settings, see the "Security settings for .pst files" section in this article.
7.        The new .pst file is added to the Outlook 2003 All Mail Folders list. To view the Folder List, click Folder List on the Go menu.