获取详细信息 [英] To Get Details

查看:101
本文介绍了获取详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,


根据以下脚本,我得到输出网站级别。





  Add-PSSnapin   Microsoft.sharepoint.powershell    -   ErrorAction  SilentlyContinue  
$ Webapp   =  " http: //contoso.com" 
$ site   = 获取 - SPSite  - webapplication  $ Webapp   - 限制所有 
$ site   |  获取 - SpWeb  - 限制所有  |   Format-Table   - 属性  LastItemModifiedDate,URL,created,title  - AutoSize  |   Out-string   - width  3000 > C:/output_webapp.txt

解决方案

您好,


您可以参考以下文章:


< a href ="http://mstechtalk.com/get-sharepoint-list-inventory-using-powershell/"> http://mstechtalk.com/get-sharepoint-list-inventory-using-powershell/


https://sharepoint.stackexchange .com / questions / 93190 / script-to-find-last-modified-files


注意:


如果你想获取已在网站下修改的列表/文档/页面列表,它将列出所有列表/库/页面,只要您创建(即使您从未修改过)。


对于您的代码,我找不到显示"修改者"的属性。属性。如果您还想知道"修改者",属性,我建议你使用下面文章中的命令,它更容易:


https://social.msdn.microsoft.com /论坛/ EN-US / 30d68f48-ddbe-48a1-be40-0b373b2ade62 /如何对显示改性的时和改性的逐场-正确地与 - 的powershell?论坛= sharepointdevelopmentprevious


祝你好运,


Allen Bai


Hi Team,

Based on below script, i got output sites level.

Add-PSSnapin Microsoft.sharepoint.powershell -ErrorAction SilentlyContinue 
$Webapp = "http://contoso.com" 
$site = Get-SPSite -webapplication $Webapp -Limit All 
$site | Get-SpWeb -Limit All | Format-Table -Property LastItemModifiedDate,URL,created,title -AutoSize | Out-string -width 3000 >C:/output_webapp.txt

解决方案

Hi,

You can refer to below articles:

http://mstechtalk.com/get-sharepoint-list-inventory-using-powershell/

https://sharepoint.stackexchange.com/questions/93190/script-to-find-last-modified-files

Note:

If you want to get a list of list/document/page that has been modified under a site, it will list all lists/libraries/pages, as long as you create(even if you have never modified).

For your code, I cannot find a property to display the "modified by" property. If you also want to know the "modified by" property, I would suggest you use commands in below article, it is easier:

https://social.msdn.microsoft.com/Forums/en-US/30d68f48-ddbe-48a1-be40-0b373b2ade62/how-to-display-modified-time-and-modified-by-fields-correctly-with-powershell?forum=sharepointdevelopmentprevious

Best regards,

Allen Bai


这篇关于获取详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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