How to Display Modified Time and Modified By Fields Correctly with Powershell
问题 I have a script that outputs to CSV all items/files from all Lists and Libraries. In addition, it displays the current and previous versions of an item/file. This also displays which user modified the file for each version and also displays the date/time the file was modified for every version: function Get-DocInventory([string]$siteUrl) { $web = Get-SPWeb "http://contoso.com/sites/Depts3/HBG" foreach ($list in $web.Lists) { foreach ($item in $list.Items) { foreach($version in $item.Versions)