All Webs and Site Templates in use within a Site Collection PowerShell Script

$site = Get-SPSite “http://yoursite” foreach ($web in $site.AllWebs) { $web | Select-Object -Property Title,Url,WebTemplate } $site.Dispose()

Advertisements
Read Article →

Copy sharepoint views to other libraries 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 […]

Read Article →