[BUG] Get-PnPSite -Includes Usage Shows Zero for Bandwidth, Hits, Visits
YuriySamorodov opened this issue · comments
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.UsageBandwidth : 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?
- PnP PowerShell for SharePoint 2013
- PnP PowerShell for SharePoint 2016
- PnP PowerShell for SharePoint 2019
- [ X] PnP PowerShell for SharePoint Online
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?
- MSI Installed downloaded from GitHub
- [X ] Installed through the PowerShell Gallery with Install-Module
- Other means