pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG] Get-PnPSite -Includes Usage Shows Zero for Bandwidth, Hits, Visits #3034

Open YuriySamorodov opened 3 years ago

YuriySamorodov commented 3 years ago

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 image

It also shows Visits and Unique visits on SharePoint site itself: image 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?