Monday, December 15, 2014

JAVA Cheat Sheet

A great reference for the basics you need to know about JAVA, like structure, input/output, data types, and functions. Check out below links





Tuesday, November 04, 2014

Arabic Language Pack for SharePoint 2013 & Service Pack 1

Arabic Language Pack

  • For SharePoint Foundation 2013 - Download )
  • For SharePoint Server 2013 -Download )

Service Pack 1 for Arabic Language Pack 
  • For SharePoint Server 2013 Language Pack (KB2880554) - ( Download )
  • For SharePoint Foundation 2013 Language Pack (KB2880555) - ( Download )

Sunday, March 23, 2014

.NET Framework 4 and 4.5 Global Assembly Cache

Starting with the .NET Framework 4, the default location for the global assembly cache is %windir%\Microsoft.NET\assembly

In earlier versions of the .NET Framework, the default location is %windir%\assembly.



Tuesday, January 14, 2014

Backup / Restore SharePoint site collection using PowerShell or STSADM commands


  • Backup Using PowerShell
Backup-SPSite <URL of the site collection (Ex, http://server_name/sites/site_name)> -Path <full path to the backup file (Ex, C:\Backup\site_name.bak)>
  • Backup Using STSADM
stsadm -o backup -url <URL of the site collection (Ex, http://server_name/sites/site_name)> -filename <full path to the backup file (Ex, C:\Backup\site_name.bak)> -overwrite
  • Restore Using PowerShell
Restore-SPSite <URL of the site collection (Ex, http://server_name/sites/site_name)> -Path <full path to the backup file (Ex, C:\Backup\site_name.bak)> -Force 
  • Restore Using STSADM
stsadm -o restore -url <URL of the site collection (Ex, http://server_name/sites/site_name)> -filename <full path to the backup file (Ex, C:\Backup\site_name.bak)> -overwrite

Note: Using of -overwrite or -Force to overwrite an existing backup file or site collection if it already exists.

Monday, January 13, 2014

SharePoint configration database connection string

Connection string for SharePoint configuration database can be found on SharePoint servers registry under below registry path registry key dsn

  • SharePoint 2007

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Secure\ConfigDB

  • SharePoint 2010

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Secure\ConfigDB

  • SharePoint 2013

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\Secure\ConfigDB


Sunday, January 12, 2014

Install SharePoint solution using PowerShell or STSADM commands

First make sure to log in to SharePoint server (Application server is preferred) with Farm admin account and run PowerShell or command line as administrator


  • Install Solution Using PowerShell
> Add-SPSolution <solution file name>
> Install-SPSolution -Identity <solution name> -WebApplication <virtual server url> -GACDeployment
  • Install Solution Using STSADM
> stsadm -o addsolution -filename <solution file name>
> stsadm -o deploysolution -name <solution name> -url <virtual server url>
  • Uninstall Solution Using PowerShell
> Uninstall-SPSolution -Identity <solution name> -AllWebApplications
> Remove-SPSolution -Identity <solution name>
  • Uninstall Solution Using STSADM
> stsadm -o retractsolution -name <solution name> -url <virtual server url> -immediate
> stsadm -o deletesolution -name <solution name>

Sunday, January 05, 2014

Read Only / Non-Editable TextBox


To make Text box Read only (or Non-Editable) without disable it and appear on gray style by adding the following attributes to TextBox tag

<asp:TextBox ID="txtBox1" runat="server" onkeypress="return false;" onpaste="return false;" Text="Read Only TextBox" />

OR

<asp:TextBox ID="txtBox2" runat="server" ReadOnly="true" Text="Read Only TextBox" />



Also you can use below attributes but it works only with IE 
contenteditable="false" Or unselectable="on"

Saturday, January 04, 2014

SharePoint Service Account Properties


  1. In Active Directory Users and Computers, view the Properties of the user account.
  2. On the Account tab, set the following Account options.
  3. Uncheck User must change password at next logon.
  4. Check the option User cannot change password.
  5. Check the option Password never expires.
  6. Click OK.