Posts

Showing posts from February, 2020

Extract Documents to Folder based on Managed Metadata Column - SharePoint

Image
  How to Extract documents from Multiple Document libraries in to Folders. Each has a Managed Metadata Column with Sub Terms. I have created three Functions to  Download Document Create Folder Main Method Addition to above, script will log the Document URL and destination Folder Path in .log file Create Folder   Function   Create-Folder {      param  ( $folderPath )      if  (!( Test-Path  -path  $folderPath ))     {          New-Item   $folderPath  -type directory     } } Download Document ( this is stolen from Stackoverflow 😁 ) Function   Download-Document {      param ( $web ,  $folderPath ,  $docItem )       #File Download Snippet Reffered From : https://stackoverflow.com/questions/43350575/how-to-use-powershell-to-download-files-from-sharepoint        $File  =  $web .GetFile ( $docItem .Url )          $Binary  =  $File .OpenBinary ()          $detinationPath  =  $folderPath  +  "\"  +  $File .Name ;          $Stream  =  New-Object  System.IO.FileStream( $detinationPath

SharePoint 2013 Site Response Time- Home Page - PowerShell

Image
I wanted to Verify the response time of the all home pages of my Entire Farm using PowerShell Script. with little bit of Google I was able to find out all the required components for me to come up with the Response time of the Each site home page for entire Farm few of the key sections which I was looking in google were Response time $TimeResponse  =  Measure-Command  -Expression {                      $Response  =  invoke-webrequest  -Uri  $web .Url  -UseDefaultCredential ; Basic Logic of the Script is based on Response code (200 for success) I'm writing in to a text file about the time taken to response from web site home page. Entire Script came up as follows including Logs Add-PSSnapin  Microsoft.SharePoint.PowerShell [ System.Reflection.Assembly ]::LoadWithPartialName( "Microsoft.SharePoint" ) >  $null cls; $timeStamp  =  Get-Date ; $startTime  =  $timeStamp .ToString ( "yyyy-MM-dd-HH-mm:s" ); $ExecutionID  =  $timeSt

Pre-Upgrade Check List

Download Our Free SharePoint Pre-Upgrade Check List

* indicates required

Vintage Clan