27 August, 2013

Backup Restore in sharepoint 2013 + Backup and Recovery Tools for SharePoint

A good backup is an excellent approach to prevent data loss & repair database in most of the data corruption cases.

If your backup is not well structured then it will not help you to recover your data at any cost.

Back up a site collection by using Windows PowerShell
Backup-SPSite -Identity <SiteCollectionGUIDorURL> -Path <BackupFile> [-Force]

Example: Backup-SPSite -Identity http://sharepointamol/sites/planet -Path D:\planet.bak -force

Along with this, we can use the following parameters with respect to our requirements:

-Force: overwrite a previously used backup file

-NoSiteLock: keep the read-only lock from being set on the site collection while it is being backed up

Restore site collection by using windows PowerShell
Restore-SPSite -Identity <SiteCollectionURL> -Path <BackupFile>  -Force

Back up a Farm in SharePoint 2013 by using windows PowerShell
Backup-SPFarm -Directory <BackupFolder> -BackupMethod {Full | Differential} [-Verbose]

<BackupFolder> is the path of a folder on the local computer

Backing up sites, lists, and libraries
Export-SPWeb –Identity “http://SharePointamol/Planets/SharePoint2013” –Path “E:\Backups\SharePointPlanetSite.cmp”

Import List: Using Powershell
Import-SPWeb http://sharepointamol.com -path E:\backup\planets.cmp -updateversions overwrite

Backup and Recovery Tools for SharePoint

DocAve Backup and Restore for Microsoft® SharePoint Backup

A Simple Way to Restore Individual SharePoint Documents

Performance best practices for SharePoint backup and restore operations

If you have any queries/questions regarding the above mentioned information then please let me know, I would be more than happy to help you as well as resolves your issues, Thank you.

22 August, 2013

Sign-in didn't work, you didn't get signed in. It might be your sign-in address or logon credentials

Problem description:
Users getting ‘Sign-in didn’t work’ error while login on Lync.

Error message:
Sign-in didn't work, you didn't get signed in. It might be your sign-in address or logon credentials, so try those again. If that doesn't work, contact your support team.

Most probable root cause:
Look like error is very simple and user might not using proper credential that why Sign-in error occurred. Most of the cases users are using their proper credential however continuously getting above error. Means credential is not the only culprit. When I dig into this then I got the actual reason behind the error.

Resolution: There are multiple resolution for this, let me share one by one:

First solution:
First step you can always check the login credential including password. Like password expired or recently changed etc.
Format:
Sign-in name: amolghuge@mydomain.com
User Name: mydomain\amolghuge
Password: *************

Second solution:
Go to Active Directory and find the user and see whether user has multiple accounts or not. Multiple accounts (separate account in each domain).

-If two or more accounts are found then, Open Lync Management Shell and run below cmdlet.

PS C:\> Get-CsUser -Identity "Ilag, Balu"

You will see the result with all enable account with above display name.

-Just keep required ID and disable rest.

-Some cases alias will be same for multiple accounts, if so then change the one of the alias name and wait to sync.

-Still getting same error message then disable the Lync account through Lync Control Panel. And enable after 30 minutes to update account information.

Note: Disable account through Lync Control Panel only. Do not disable via Lync Management shell otherwise user will lose their buddy list.

In case of any queries/questions regarding the above mentioned information then please let me know, Thank you.

Product applies:

Lync Server 2010

Problem occurred while contacting to the server. If the problem continues, contact your administrator- SharePoint 2010

Problem description:
Not able to edit office documents on SharePoint site

Error Message:
Problem occurred while contacting to the server. If the problem continues, contact your administrator.

Resolution:
Please refer the following steps to resolve this issue:

1.   Click 'Select Reinstall Mode'
2.   Uncheck “Repair all detected reinstall problems”.
3.   Check “Force all files to be reinstalled, regardless of checksum or version”.
4.   Check “Verify that required user registry entries are present”.
5.   Check “Verify that required machine registry entries are present”.
6.   Check “Validate shortcuts”.
7.   Press OK
8.   Click REINSTALL

If you have any queries/questions regarding the above mentioned information then please let me know, Thank you.

Problem applies to:
SharePoint Server 2010
SharePoint Foundation 2010

Reference:

http://microsoftdll.com/2013/06/how-to-fix-webfldrs-msi-error

Fetch current login user data from active directory using JavaScript in SharePoint

Problem Description:
Fetch current login user data from active directory using JavaScript in SharePoint.

Resolution:

<script type="text/javascript">
/* getUserName function is use to find Current System User */
function getUserName()
{
 var wshNetwork = new ActiveXObject("WScript.Network");
 var userName = wshNetwork.UserName;
 return userName;
}

function getAD(userName)
{
 //var name = userName.split(".");
 objConnection = new ActiveXObject("ADODB.Connection");
 objConnection.Provider="ADsDSOObject";

 objConnection.Open("ADs Provider");

 objCommand = new ActiveXObject("ADODB.Command");
 objCommand.ActiveConnection = objConnection;

 objCommand.CommandText = "SELECT sAMAccountName, givenName, SN, mail,physicalDeliveryOfficeName FROM 'LDAP://DomainName.com/DC=Domain,DC=com' WHERE objectCategory='user' and sAMAccountName = '"+userName+"'";

 /* Next up is the command itself.*/
 objRecordSet = objCommand.Execute();

 /* Then we execute the command */
 /* Once executed, the command will return an enumeration of the results.*/

 var userMail,lastName,firstName;
 if (objRecordSet.RecordCount == 1) {
  objRecordSet.Movefirst;
  userMail = objRecordSet.Fields("mail").value;
  firstName = objRecordSet.Fields("givenName").value;
  lastName = objRecordSet.Fields("sn").value;
  samaccountname= objRecordSet.Fields("samaccountname").value;
  physicalDeliveryOfficeName= objRecordSet.Fields("physicalDeliveryOfficeName").value;
 }
 else
 {
  userMail = "";
  firstName = "";
  lastName = "";
  physicalDeliveryOfficeName = "";
 }
 objConnection.Close;
 return userMail+";"+firstName+";"+lastName+";"+physicalDeliveryOfficeName;
}

var AD = getAD(getUserName()).split(";");

var mail = AD[0];
var firstName = AD[1];
var lastName = AD[2];
var Office = AD[3];
</script>


References:
In objCommand.CommandText make connection string properly.

In Select query use column name of active directory from which you want data.
Refer this link for column name:

Product Applies To:
·         SharePoint Server 2010
·         SharePoint Foundation 2010
·         SharePoint Server 2013


Feel free to revert in-case of any query...

SharePoint 2013 training in Mumbai + Pune + Bangalore + Chennai + Delhi

SharePoint 2013 training in Mumbai





SharePoint 2013 training in Bangalore





SharePoint 2013 training in Pune





SharePoint 2013 training in Delhi





SharePoint 2013 training in Chennai