Last active
March 28, 2018 20:07
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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