Showing posts with label Add-SPDistributedCacheServiceInstance. Show all posts
Showing posts with label Add-SPDistributedCacheServiceInstance. Show all posts

Friday, July 24, 2020

powershell update Peoplepicker in List In SHarePoint

#Read the CSV file 
#stored local variable 
$delimitercsv = "|" 
$filePath = "C:\peakfinders.csv" 
$userid = "EmpID"
$useremailowner = "Owner"

#Get the SharePoint List
$tWeb = Get-SPWeb -identity "http://sharepoint.peakfinders.com" 
$list = $tWeb.Lists["Employee"]
$CSVData = Import-CSV -path $filepath | ForEach-Object {
    Write-Host "$($_.ID) ,$($_.'Email-Address')";
foreach($sitem in $items)
{

$userid = $sitem['EmpID']
if($userid.LookUPid -eq $($_.ID)){
$sitem["mail"] =$($_.'Email-Address');
$sitem.Update()
}
}
}

Thursday, March 17, 2016

WSP gets stuck in "Deploying"


  • stsadm -o execadmsvcjobs on the server running Central Admin
  • Install-SPSolution has only the -Force, 
  • Check for Sharepoint 2013 Timer service






Add-SPSolution –LiteralPath "d:solution.wsp" 

install solution and we executed the following command:

Install-SPSolution -Identity "solution.wsp" -WebApplication http://peakfinders.com/  –GACDeployment

Thursday, April 16, 2015

Distributed cache in SharePoint2013

SharePoint is a new service called Distributed Cache. This service is built on Windows Server AppFabric, which implements the AppFabric Caching service. Windows Server AppFabric installs with the prerequisites for SharePoint Server 2013. Start and Stop Distributed cache 1.Central Admin, open Application Management.
2.Click Service Applications,and then click Manage Services on Server.
3.On the Services the page, locate the Distributed Cache service.Start and Stop the service


Add new Distributed cache in SharePoint2013 in Powershell



Add-SPDistributedCacheServiceInstance

Start Distributed cache in SharePoint2013 in Powershell


$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.Provision()
Stop Distributed cache in SharePoint2013 in Powershell


$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.Unprovision()
Delete Distributed cache in SharePoint2013 in Powershell


$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}
$serviceInstance.remove()
Update the memory allocation in SharePoint2013 in Powershell


Update-SPDistributedCacheSize -CacheSizeInMB CacheSize
The Distributed Cache service is importance of the following features: Authentication
Newsfeeds
OneNote client access
Security Trimming
Page load performance