Copy SharePoint views to other libraries with PowerShell
[CmdletBinding()] Param ( [Parameter(Mandatory=$true,ValueFromPipeline=$true)][string]$WebURL, [Parameter(Mandatory=$true)][string]$SourceList, [Parameter(Mandatory=$true)][string]$SourceView, [Parameter(Mandatory=$false)][string]$NewViewName, [Parameter(Mandatory=$false)][string]$TargetURL, [Parameter(Mandatory=$false)][string]$IgnoreLibs, [Parameter(Mandatory=$false)][string]$AsDefault, [Parameter(Mandatory=$false)][string]$OutputPath, [Parameter(Mandatory=$false)][string]$SmtpServer, [Parameter(Mandatory=$false)][string]$EmailFrom, [Parameter(Mandatory=$false)][string]$EmailTo ) Function Copy-SPView { Write-Host "Loading Sytem Modules " Get-Module -listAvailable | import-module if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null ) { Write-Host "Loading Sharepoint Module " ...