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.