#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 |...
Showing posts with label SharePoint Foundation 2013. Show all posts
Showing posts with label SharePoint Foundation 2013. Show all posts
Friday, July 24, 2020
Friday, February 12, 2016
12
Feb
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 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
$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"...