Tuesday, July 28, 2020

Orphaned features in SharePoint Farm

Leave a Comment
While working for a client project and deploying existing SharePoint solution face issue about orphaned features which gives error a feature with feature id XXXXX already exist in farm.There are two solution either in feature set force install option or delete orphaned features using following powershell commands:Get-SPFeature | ? {$_.Scope -eq $null}$feature = Get-SPFeature | ? {$_.DisplayName -eq "FeatureToBeDeleted"} $feature.Dele...
Read More

Saturday, July 18, 2020

Solution: Datepicker not working within updatepanel

Leave a Comment
Problem Statement:Got chance to work on an existing project where in webform within update panel bootstrap datepicker control isn't working after callback/postback.Solution:Bind & Update datepicker controls at endRequest as follows: $(function () { bindDatePickers(); // bind date picker on first page load Sys.WebForms.PageRequestManager.getInstance().add_endRequest(bindDatePickers); // bind date picker on every UpdatePanel refresh }); function bindDatePickers() { $('#<%= txtStartDateFrom.ClientID%>').datepicker({ ...
Read More

Wednesday, June 3, 2020

PowerShell: Migrate SharePoint list content from one farm to other farm using CSOM

Leave a Comment
Scenario:I met a scenario, where I need to migrate some list items (around 500+) from one farm (development) to another farm (Staging) and then to Production farm.Ideal scenario probably would be to create list schema with content. However, in my current scenario I used CSOM for copying list items. Also in my scenario I just can't replace current content of destinate list item. I must have to just copy/move list items which are required for newly developed components.Solution:First I save list as list template along with content...
Read More

Sunday, January 12, 2020

Export AD user to csv file

Leave a Comment
This blog post is kind of immediate requirement to import users from one dev AD to another testing AD. So it include of two parts. Part 1: To export users from Dev AD to csv file Part 2: To import users to testing AD from csv file In this post we will see how to export users from particular OU to a CSV file. Following is PowerShell script which I used: #OU Name/path whom users need to be exported $OUName = 'ou=OUName,dc=domain,dc=com' #Path where csv file will be created with OU users $ExportPath = 'c:\tmp\myOU_Users.csv' #command...
Read More