The Microsoft Cloud Blog

Expert insights on Microsoft Azure, Cloud Architecture, and Enterprise Technology

SharePoint 2013

13 articles

Should we customise SharePoint?

I have been having lots of discussions with my clients recently regarding whether to customise SharePoint 2013, especially SharePoint online and I thought I would document some of my thoughts in regards to this scenario. My thoughts on this subject have evolved over the last year or so.  Having spent some time working directly for… Continue Reading →

Read article

SharePoint 2013: Creating a Publishing Page and assigning a page layout using PowerShell

The following PowerShell can be used to create a publishing page and assign a page layout. #Get SPWeb $spWeb = Get-SPWeb(“Site URL”); #Get Publishing Web $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($spWeb) #Finds the appropriate page layout $pl = $pubWeb.GetAvailablePageLayouts() | Where { $_.Name -eq “Page Layout Name”} $pages = $pubWeb.GetPublishingPages(); #Create the page; $page = $pages.Add(“Page Name”, $pl)… Continue Reading →

Read article

SharePoint 2013: PowerShell to update a term sets Submission Policy

The following PowerShell can be used to update a terms sets submission policy to open or closed. #Connect to Central Admin $Session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession(“Central Admin URL”) #Connect to Managed Metadata Service $Store = $Session.TermStores[“Managed Metadata Service Name”] #Get the group $Group = $Store.Groups[“Group Name”]; #Get the Term Set $TermSet = $Group.TermSets[“Term Set Name”]; #Update… Continue Reading →

Read article

SharePoint 2013 Error: The filtering process has been terminated

I had just completed a PowerShell scripted deployment of a SharePoint farm and was just performing the final checks when I noticed the following error in the crawl logs. “The filtering process has been terminated” This turned out that because in the PowerShell script I had specified that the SharePoint installation location should be different to… Continue Reading →

Read article

SharePoint 2013: Get User Profile Properties via PowerShell

The following script will iterate through all the user profiles and return the account name. Add-PSSnapin microsoft.sharepoint.powershell; #Load SharePoint User Profile assemblies [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server.UserProfiles”) #Get Context $serviceContext = Get-SPServiceContext -Site “[Site Name]” #Instantiate User Profile Manager $userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext); #Get All User Profiles $profiles = $userProfileConfigManager.GetEnumerator(); #Loop through all user profiles and display account name… Continue Reading →

Read article
Page 1 of 2Next →