Get extract of files modified after particular date from SharePoint library or folder within library (PowerShell script)

Function getFilesWithin($list) { foreach($item in $list.Items) { if ($folderURL -ne “”) { if ($item.Url.StartsWith($folderURL, “CurrentCultureIgnoreCase”)) { $targetFile = $item.file; if ($targetFile.TimeLastModified -ge (Get-Date $lastDate)){ $item.Name + “;” + $item.Url + …

Read More

Get document wise versions list using Powershell

function Get-DocumentItemVersionsList([string]$WebURL, [String[]]$listName) { [void][System.reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) set-variable -option constant -name out -value “C:\Get-ListItemVersionsList_Output.csv” “Item_ID|Item Title|Item URL|Version Count” | Out-File $out -Append write-host “–IN” $web = get-spweb $WebURL write-host “–Web initiated” $list …

Read More