I am trying to retrieve information about site usage via SPSite.UsageInfo programatically or via PowerShell.
Here is simple PowerShell code:
$site = Get-SPSite "http://intranet" $site.Usage
And it returns something like this:
Storage : 112959407 Bandwidth : 0 Visits : 0 Hits : 0 DiscussionStorage : 0
The problem is Bandwidth, Visits, Hits and DiscussionStorage properties are always zero. The WebAnalytics is running and it is showing results via Site Usage Reports but these values do not seem to show via API. Is there anything I am missing here.