Get Previous Versions Storage Information
The following example gets the storage used by the previous versions created by version control for all items.
- Connect to the administration web service.
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";