Showing posts with label Update Feed Cache for User Profile Service Application. Show all posts
Showing posts with label Update Feed Cache for User Profile Service Application. Show all posts

Wednesday, June 3, 2015

Enable NetBIOS & Update Feed Cache for User Profile Service Application

Enable NetBIOS for User Profile Service Application


$ServiceApps = Get-SPServiceApplication
$UserProfileServiceApp = ""
foreach ($sa in $ServiceApps)
{
if ($sa.DisplayName -eq "User Profile Service Application")
{$UserProfileServiceApp = $sa}
}
$UserProfileServiceApp.NetBIOSDomainNamesEnabled = 1
$UserProfileServiceApp.Update()

Gracefully remove distributed cache instance
Stop-SPDistributedCacheServiceInstance -Graceful
Remove-SPDistributedCacheServiceInstance


-------------------------------------------------------------------------------------------------------------------------------------------------------------------Update Feed Cache


$upa = Get-SPServiceApplication | where {$_.TypeName -Like "User Profile Service Application"}
$upa.FeedCacheTTLHours = 96
$upa.Update()