Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue
$webApplication = Get-SPWebApplication http://url_webApplication
$filePath = "C:\AllSites.txt"
$sites = $webApplication.Sites
foreach ($site in $sites)
{
foreach ($web in $site.AllWebs)
{
$web.Url | Out-File -FilePath $filePath -Append -Width 256
}
}
domingo, 4 de enero de 2015
Obtener todos los websites de un web application mediante powershell
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario