How to Upload folders and documents in hierarchical order (SharePoint In-Premises)

RUN BELOW STATEMENTS IN POWERSHELL — #SharePoint Multiple File Upload Script function Copy-FilestoSP { Param ( [parameter(Mandatory=$true)][string]$LocalPath, [parameter(Mandatory=$true)][string]$SiteUrl, [parameter(Mandatory=$true)][string]$Library, [parameter(Mandatory=$false)][string]$LibraryStartFolder, [parameter(Mandatory=$false)][string]$ManifestFilePath, [parameter(Mandatory=$false)][switch]$IncludeSubFolders, [parameter(Mandatory=$false)][switch]$Approve, [parameter(Mandatory=$false)][switch]$CheckIn, [parameter(Mandatory=$false)][switch]$Overwrite, [parameter(Mandatory=$false)][switch]$FlattenStructure ) try { #Get web and document library objects $web = Get-SPWeb $SiteUrl $docLibrary = $web.Lists[$Library] #Load metadata manifest file, if specified if ($PSBoundParameters.ContainsKey(‘ManifestFilePath’))…

Read More