SharePoint Expert

Archive for the ‘Uncategorized’ Category

SharePoint 2013 Server Installation in Farm

1.Install Prerequisites1

2

3

restart your server

3

2.Install SharePoint 2013

Run the SharePoint 2013 setup media.

On the Enter Your Product Key tab, enter your product key, and then click Continue.

a

On the Read the Microsoft Software License Terms tab, review the terms, select the “I accept the terms of this agreement” check box, and then click Continue.

b

On the Server Type tab, click Complete.

c

On the File Location tab, accept the default location or change the installation path, and then click Install Now.

d

e

When the Setup program is finished, a dialog box prompts you to complete the configuration of your server. Clear the Run the SharePoint Products and Technologies Configuration Wizard now check box.

f

3 .Run SharePoint Products Configuration Wizard

On the Welcome to SharePoint Products screen, Click on Next button to continue

1

You will be prompted for start or reset the Services during Configuration. Click on Yes button to continue

2

On the Connect to a server farm screen, Select the Create a new server farm radio button

3

You have to provide set the below mentioned fields to complete the configuration

Database server – Instance name of your SQL Server 2012 R2

Database Name – Database of the SQL Server

Username – Domain user (SP_Farm)

Password – based on your choice

Click on Next button to continue

4

On the Specify Farm Security Settings screen, you need to provide the password to secure the configuration data.

Please remember Passphrase

5

On the following screen, you can setup the port number and the security settings for your site. Click on Next button to continue

6

8

On the Completing the SharePoint Products Configuration Wizard screen, Click on Next button to complete the configuration

9.1

Once, configuration completes, you should be able to see the Successful message on the screen. Click on Finish button

9

You will be landed to Welcome page of SharePoint Farm configuration. Click on Start the Wizard button to configure the services & create root site

Cheers

SharePoint Folder to Document Set Conversions Fix or Update ProgId property to ‘SharePoint.DocumentSet’.

Background : In SharePoint during a content type property change from Folder to Document Sets, folders sometimes not correctly converted to document sets due to this below issues occurs

  • Folder icon remains instead of the document set icon.
  • The Document Set home page does not appear.
  • Document set functionality is not available via the ribbon.

Root Cause :The issue is with the ProgId property,  ProgId is blank or no value

WorkAround : ProgId property set to ‘SharePoint.DocumentSet’.

Approach 1 : You can create an event receiver which sets the ProgId property set to ‘SharePoint.DocumentSet’ when Item updating event.

properties.ListItem.ProgId  = “SharePoint.DocumentSet”;

properties.ListItem.Update();

Approach 2 : Powershell Script

param(
[string]$WebUrl = $(throw “WebUrl required.”),
[string]$ListName = $(throw “ListName required.”),
[bool]$disableEventFiring = $false
)

#Region [ Load Assemblies ]
$spNotFoundMsg = “SharePoint not found. Run this script from a SharePoint server that is part of the farm where you want to update your content types”

if ([Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) -eq $null)     { throw $spNotFoundMsg; }
if ([Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server”) -eq $null)    { throw $spNotFoundMsg; }
if ([Reflection.Assembly]::LoadWithPartialName(“System.Xml.Linq”) -eq $null)      { throw $spNotFoundMsg; }
if ([Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server”) -eq $null)    { throw $spNotFoundMsg; }
if ([Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server.UserProfiles”) -eq $null) { throw $spNotFoundMsg; }
if ([Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Taxonomy”) -eq $null)   { throw $spNotFoundMsg; }

$snapin = Get-PSSnapin | Where-Object {$_.Name -eq ‘Microsoft.SharePoint.Powershell’}
if ($snapin -eq $null)
{
Write-Output “Loading Microsoft SharePoint Powershell Snapin”
Add-PSSnapin “Microsoft.SharePoint.Powershell”
}
#endregion

Start-SPAssignment -Global

$web = Get-SPWeb $WebUrl -EA 1

$list = $web.Lists[$ListName]
if ($list -eq $null) { throw “List ‘$ListName’ not found at ‘$WebUrl'” }

Write-Host “Found list ‘$ListName’ at ‘$WebUrl'” -ForeGroundColor Green

if($disableEventFiring)
{
Write-Host “Disabling event firing” -ForeGroundColor Yellow
$myAss = [Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”);
$type = $myAss.GetType(“Microsoft.SharePoint.SPEventManager”);
$prop = $type.GetProperty([string]”EventFiringDisabled”,[System.Reflection.BindingFlags] ([System.Reflection.BindingFlags]::NonPublic -bor [System.Reflection.BindingFlags]::Static));
$prop.SetValue($null, $true, $null);
}

$count = 0
$folderCollection = $list.Folders
foreach($folder in $folderCollection)
{
if ($folder.ContentType.Id.ToString().StartsWith(“0x0120D520”))
{
if($folder.ProgId -ne “SharePoint.DocumentSet”)
{
Write-Host “Found a document set to fix:” $folder.Title -ForeGroundColor Yellow

$folder.ProgId = “SharePoint.DocumentSet”
$folder.Update()
$documentSet = [Microsoft.Office.DocumentManagement.DocumentSets.DocumentSet]::GetDocumentSet($folder.Folder)
$documentSet.Provision()

Write-Host “Document set” $folder.Title “is fixed” -ForeGroundColor Green
$count++
}
}
}

if ($count -eq 0)
{
Write-Host “Found no document sets requiring an update!” -ForeGroundColor Yellow
}
else
{
Write-Host “Updated $count document sets!” -ForeGroundColor Green
}

Stop-SPAssignment -Global

Powershell Command

C:\PS> .\DocumentSetProgIDUpdate.ps1 -WebUrl “http://mysitecollection/myweb/” -ListName “ListName”   -disableEventFiring $true

PS : Powershell Script Developed by: http://www.vxcompany.com

Cheers !