Skip to content
W365-08 Field-tested

Report Cloud PC disk usage and flag low storage

The Windows 365 blade only shows provisioned disk size. Real free space lives in Intune's device storage fields.

The problem

In Intune, Devices → Windows 365 → All Cloud PCs shows the provisioned storage (for example 128 GB). It doesn’t tell you how full the disk actually is.

Where the real numbers are

Each Cloud PC is also an Intune managed device. Its record carries totalStorageSpaceInBytes and freeStorageSpaceInBytes:

Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All"
$uri = "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?`$filter=model eq 'Cloud PC'&`$select=deviceName,userPrincipalName,totalStorageSpaceInBytes,freeStorageSpaceInBytes"
(Invoke-MgGraphRequest -Uri $uri).value | ForEach-Object {
  [pscustomobject]@{
    Device  = $_.deviceName
    User    = $_.userPrincipalName
    FreeGB  = [math]::Round($_.freeStorageSpaceInBytes / 1GB, 1)
    TotalGB = [math]::Round($_.totalStorageSpaceInBytes / 1GB, 1)
  }
} | Sort-Object FreeGB

Flag anything under about 10–15% free. Follow the @odata.nextLink if you have more than one page of devices.

Notes

  • The values refresh when the device checks in, so a Cloud PC that hasn’t been used recently may show stale numbers.
  • To give a Cloud PC more disk, resize it (W365-04).

Seeing this in your environment?

We can check for this, and everything around it, as part of an audit.

Ask us about W365-08

Find out what's really going on in your tenant.

Tell us what you run and what's worrying you. We'll recommend the right audit, and tell you honestly if you don't need one.