Posts

Showing posts from April, 2018

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

Free E-Book Download From Microsoft

Image
For any one who is looking for Microsoft Resources (Free E-Books) this is the best place to find official Microsoft Books Microsoft Press - Free E books .Net Microservices Architecture book can be downloaded from here This Contains many latest Topics Such as Containers, Micro services and many more. Hope this might help anyone who was looking for the resources. Cheers

Get Site Collection Administrators

Image
For one activity I had to find all Site Collection Administrators for each and every web application. since I had only few web applications. I managed get it done with the help of bellow link.   https://sharepoint. stackexchange.com/questions/ 209841/get-site-collection- administrators-using- powershell after few modifications, now this script will generate a .csv file with site name and all site collection administrators for each site collection. Add-PSSnapin Microsoft.SharePoint.PowerShell [System.Reflection.Assembly] ::LoadWithPartialName ( "Microsoft.SharePoint" ) > $null $ webApp = Get-SPWebApplication -Identity "http://webappURL" $ logFilePath = "FilePath\ $($ webApp .Name ) -Log.log" ; Add-Content -Path $ logFilePath -value "SiteName | Admin Name" ; $ siteCollections = $ webApp .Sites ; foreach ($ spSite in $ siteCollections ) {   $ siteURL =  $ spSite .Url ;   $ siteCollectionAdmi

Pre-Upgrade Check List

Download Our Free SharePoint Pre-Upgrade Check List

* indicates required

Vintage Clan