Skip to main content

Posts

Showing posts from August, 2017

Power Shell Script to get the Event Receivers associated with a SharePoint list

Following Powershell script can be bused to get the Event Receivers associated with a SharePoint list # Define the URL and list name; $webURL = "http://192.168.0.16” $listName = “project initiation note” # Get a reference to the SharePoint web; $web = Get-SPWeb $webURL # Get a reference to the SharePoint list or library; $list = $web.Lists[$listName] # Iterate through and get the event receivers associated foreach($eventReceiverDef in $list.EventReceivers) {     if($eventReceiverDef.Name -ne “”)     {                     $eventInfo = $eventReceiverDef.Name + ” – ” + $eventReceiverDef.Type                     Write-Host $eventInfo -BackgroundColor Green -ForegroundColor Black     } } $web.Dispose()

SharePoint Migration from SharePoint 2010 to SharePoint 2013

 If you are trying to Migrating SharePoint 2010 to SharePoint 2013, here are few of the steps, you can follow: Move the Database from old SQL instance to new one 1.       Take DB backup of the SharePoint content databases by command or using SSMS 2. Restore the database - Execute the following command in SQL USE [master] RESTORE DATABASE [WSS_Content_1010_ABC]  FROM  DISK = N'<yourPath\bak.bak>' WITH  FILE = 1,  MOVE N'WSS_Content_ABC' TO N'<PATH>\WSS_Content_ABC.mdf',   MOVE N'WSS_Content_ABC1' TO N'D:\SQL_Sharepoint\DATA\WSS_Content_ABC_new.ndf',   MOVE N'WSS_Content_ABC_log' TO N'<Path>\WSS_Content_ABC_log.ldf',  NOUNLOAD,  STATS = 5 GO 2.       Create a new webapp in classic mode using PowerSheel   New-SPWebApplication -Name {Name} -ApplicationPool {ApplicationPool} -AuthenticationMethod {WindowsAuthType} -ApplicationPoolAccount {ApplicationP...