Showing posts with label SharePoint Foundation 2013. Show all posts
Showing posts with label SharePoint Foundation 2013. Show all posts

Friday, July 24, 2020

24 Jul

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 |...

Friday, February 12, 2016

12 Feb

When we get retrive People or Group field returning semicolon hash then Name

1;#Deepak Kumar Get User name: new SPFieldLookupValue(properties.ListItem["Staff Member"].ToString()).LookupValue; Get User ID: new SPFieldLookupValue(properties.ListItem["Staff Member"].ToString()).LookupId; Using Split fuction: properties.ListItem["Staff Member"].ToString(); You are going to be returned their...

Friday, January 29, 2016

29 Jan

Get all the site collection with content DB details using powershell commands

Get sites and content DB details using following power shell command $rootSite=New-Object Microsoft.SharePoint.SPSite("http://weburl")$spWebApp = $rootSite.WebApplication foreach($site in $spWebApp.Sites) {        write-output "$($site.RootWeb.Url) - $($site.ContentDatabase)"        ...

Wednesday, December 9, 2015

09 Dec

Creating User Profile Services using Powershell commands in SharePoint foundation 2013

$ver = $host | select version if ($ver.Version.Major -gt 1) {$Host.Runspace.ThreadOptions = "ReuseThread"} Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Load Functions function PollService { sleep 5 } #Set Script Variables Write-Progress -Activity "Provisioning User Profile Service Application"...