![]() ![]() #Call the Function to Generate Version History Report ![]() Write-host "Versioning Report Generated Successfully!" "$($siteName) `t $($List.Title) `t $($ListItem.Name) `t $($Web.Url)/$($ListItem.Url) `t $($ListItem.ToString()) `t $($ListItem.ToString())`t $($) `t $CurrentVersionSize `t $($versionSize) `t $($ToalFileSize)" | Out-File $CSVReport -Append #Log the data to a CSV file where versioning size > 0MB! $versionSize = $versionSize + $FileVersion.Size If ( ($List.BaseType -eq "DocumentLibrary") -and ($List.Hidden -eq $false) )įoreach ($FileVersion in $) #Get only Document Libraries & Exclude Hidden System libraries #Loop through each site in the site collection of Versions `t Latest Version Size(MB) `t Versions Size(MB) `t Total File Size(MB)" | Out-file $CSVReport ![]() "Site Name`t Library `t File Name `t File URL `t File Type `t Last Modified `t No. #Define 'Web Application URL' as Mandatory Parameter Add-PSSnapin -ErrorAction Silentl圜ontinue ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |