PowerShell script to create a new User Profile Property

★★★★★★★★★★★★★★★     #Load SharePoint User Profile assemblies [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server”) [System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.Office.Server.UserProfiles”) #Function to get service context function Get-SPServiceContext([Microsoft.SharePoint.Administration.SPServiceApplication] $profileApp) { $profileApp = @(Get-SPServiceApplication | ? {$_.TypeName -eq “User Profile Service Application”})[0] return [Microsoft.SharePoint.SPServiceContext]::GetContext ($profileApp.ServiceApplicationProxyGroup, [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default) } #Get UserProfileManager $serviceContext = Get-SPServiceContext $userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles. UserProfileConfigManager($serviceContext) $userProfilePropertyManager = $userProfileConfigManager.ProfilePropertyManager $userProfilePropertyManager = $userProfilePropertyManager.GetCoreProperties() $userProfileTypeProperties = $userProfilePropertyManager.GetProfileTypeProperties ([Microsoft.Office.Server.UserProfiles.ProfileType]::User)…

4

Configuring Farm Account for PerformancePoint Service Application

★★★★★★★★★★★★★★★ It’s been quite sometime since I’ve written blog articles.  This post talks about setting farm account for PerformancePoint Service Application in SharePoint 2010 farm.  A new PerformancePoint Service Application was created in the UI specifying the Application Pool Identity account and the configuration went well without any issues. Then when a hot fix was…

0