在SiteCollection中创建所有子网站的列表 [英] Create a list of all subsites in SiteCollection

查看:66
本文介绍了在SiteCollection中创建所有子网站的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在sitecollection中创建所有子网站的列表。任何帮助?

I want to create a list of all subsites in a sitecollection. any help?

推荐答案

您好Nielsjacquet。

Hi Nielsjacquet.

您可以通过执行以下操作通过PowerShell获取此类列表snippet

You can get such a list via PowerShell by executing the following snippet

Get-SPSite "http://sitecollection" | Get-SPWeb -Limit ALL

如果要将列表保存到文本文件,只需附加" | Out-File"C:\ WebsList.txt"以前的PowerShell代码。

If you want the list to be saved to a text file, simply append " | Out-File "C:\WebsList.txt" to the previous PowerShell code.

再见。


这篇关于在SiteCollection中创建所有子网站的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆