Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save MrWyss-MSFT/21de5dd6ccae38d908adb9cd98bcfd88 to your computer and use it in GitHub Desktop.

Select an option

Save MrWyss-MSFT/21de5dd6ccae38d908adb9cd98bcfd88 to your computer and use it in GitHub Desktop.
Get-DeliveryOptimizationStatusHumanReadable
Get-DeliveryOptimizationStatus |
Select PredefinedCallerApplication,
@{Name="SourceURL";Expression={$_."SourceURL" -replace '^.*/',''}},
DownloadMode,
@{Name="FileSizeMB";Expression={[math]::round($_.FileSize / 1MB, 2)}},
@{Name="FileSizeInCacheMB";Expression={[math]::round($_.FileSizeInCache / 1MB, 2)}},
@{Name="TotalBytesDownloadedMB";Expression={[math]::round($_.TotalBytesDownloaded / 1MB, 2)}},
@{Name="BytesFromPeersMB";Expression={[math]::round($_.BytesFromPeers / 1MB, 2)}},
@{Name="BytesFromHttpMB";Expression={[math]::round($_.BytesFromHttp / 1MB, 2)}},
HttpConnectionCount,
Status,
DownloadDuration,
PercentPeerCaching,
Priority,
NumPeers,
ExpireOn,
CacheHost,
@{Name="BytesFromCacheServerMB";Expression={[math]::round($_.BytesFromCacheServer / 1MB, 2)}},
CacheServerConnectionCount,
@{Name="BytesFromLanPeersMB";Expression={[math]::round($_.BytesFromLanPeers / 1MB, 2)}},
@{Name="BytesToLanPeersMB";Expression={[math]::round($_.BytesToLanPeers / 1MB, 2)}},
LanConnectionCount,
@{Name="BytesFromLinkLocalPeersMB";Expression={[math]::round($_.BytesFromLinkLocalPeers / 1MB, 2)}},
@{Name="BytesToLinkLocalPeersMB";Expression={[math]::round($_.BytesToLinkLocalPeers / 1MB, 2)}},
LinkLocalConnectionCount,
@{Name="BytesFromGroupPeersMB";Expression={[math]::round($_.BytesFromGroupPeers / 1MB, 2)}},
@{Name="BytesToGroupPeersMB";Expression={[math]::round($_.BytesToGroupPeers / 1MB, 2)}},
GroupConnectionCount,
@{Name="BytesFromInternetPeersMB";Expression={[math]::round($_.BytesFromInternetPeers / 1MB, 2)}},
@{Name="BytesToInternetPeersMB";Expression={[math]::round($_.BytesToInternetPeers / 1MB, 2)}},
InternetConnectionCount,
FileId,
IsPinned |
Out-GridView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment