Extract Documents to Folder based on Managed Metadata Column - SharePoint

  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 Access Denied in Site Collections in Web Application

Not a good way to start the day. All Site collections in a Web Application is giving Access Denied Error to all the Users. Even SharePoint Setup Account which is a Farm account and Primary Site collection administrator for all the site collections.

IIS reset, Server Restart everything was tried. But missed the simple thing SharePoint Super Reader and Super User Account!!!

Fortunately one of the Microsoft PFE was in our office today. It came to her mind and just tried the setting Super User and Super Reader Accounts again through powershell.

NOTE: same accounts were already configured properly but reconfigured through PowerShell.
Problem Solved

$wa = Get-SPWebApplication -Identity "http://WebApplicationURL"
$wa.Properties["portalsuperuseraccount"] = "domainName\SuperUserAccount"
$wa.Properties["portalsuperreaderaccount"] = "domainName\SuperReaderAccount"


Pre-Upgrade Check List

Download Our Free SharePoint Pre-Upgrade Check List

* indicates required

Vintage Clan

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission - User Profile Issue

How to Create Host Header to SharePoint Web Application