The following example gets the storage used by the previous versions created by version control for all items.


Code Sample

# Get the previous version storage information.

$information = $administration.GET_PreviousVersionsStorageInformation();

Write-Host "$($information.PreviousVersionsCount) previous versions";

Write-Host "Storage used: $($information.UsedSpace)KB"