This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Description
Reporting an Issue or Missing Feature
I am reporting a bug
Expected behavior
$PnPConnection = Connect-PnPService -Url $SitesPrivateChannelsExternal[-1].Url
$SsiteDetails = Get-PnPSite -Includes Usage
$siteDetails.Usage
Bandwidth : 5
DiscussionStorage : 0
Hits : 1
Storage : 1407232
StoragePercentageUsed : 0.000262117385864258
Visits : 2
TypeId : {7ec28504-35f9-4fcf-a09f-401024417292}
Actual behavior
PnP command Get-PnPSite -includes Usage
always returns 0 for Bandwidth
, Hits
, Visits
, although it does retrieve data for Storage
and StoragePercentageUsed

It also shows Visits and Unique visits on SharePoint site itself:

An issue has been reported on Stackoverflow sometime ago already.
Steps to reproduce behavior
$PnPConnection = Connect-PnPService -Url $SitesPrivateChannelsExternal[-1].Url
$siteDetails = Get-PnPSite -Includes Usage
$siteDetails.Usage
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name sharepointpnppowershell* -ListAvailable
)
Name : PnP.PowerShell
Version : 0.3.10
How did you install the PnP-PowerShell Cmdlets?