Skip to content

Instantly share code, notes, and snippets.

@allenmichael
Last active March 28, 2018 20:07
Show Gist options
  • Save allenmichael/43311810e1fadf41995b1bee7baf9443 to your computer and use it in GitHub Desktop.
Save allenmichael/43311810e1fadf41995b1bee7baf9443 to your computer and use it in GitHub Desktop.
A PowerShell script to list all App Users that currently have 0 GB allocated.
box users list | ConvertFrom-Json | select -ExpandProperty "Entries" | select Name,Login,Id,Space_Used | where {($_.Login -Match "AppUser" -and $_.Space_Used -eq 0)} | select Id,Name,Space_Used | Tee-Object -Variable box_users | select Id | ConvertTo-Json;
$box_users | Format-Table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment