ps1 cannot be loaded because the execution of scripts is disabled on this system Powershell Error

There are many cases, when we get an error “ps1 cannot be loaded because the execution of scripts is disabled on this system” while executing any script in Windows Powershell. It is well understood that the execution policy helps to protect you from scripts that you do not trust. Changing…

Read More

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