Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

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

Open
5 tasks
YuriySamorodov opened this issue Dec 17, 2020 · 0 comments
Open
5 tasks
Assignees
Labels

Comments

@YuriySamorodov
Copy link

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?

  • 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants