سؤال

I am looking for a quick way to export all sub-sites from a web application and exclude the root url, is there a quick way to accomplish this?

هل كانت مفيدة؟

المحلول

maybe this can help :

Get-SPSite http://yourwabapp/sites/sitecol | Get-SPWeb | Where-Object  { $_.ParentWeb -Ne $null } | ForEach-Object { Export-SPWeb -Identity $_ -Path $_.ID }

you will need to adjust the export params according your needs

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top