AWS Workspaces – Count of machine state

Just a quick 1 liner of powershell to work this one out:

get-wksworkspace | Group-Object state | Select-Object name,count | Sort state -Descending

Which will give you something like:

Name Count
—- —–
AVAILABLE     279
UNHEALTHY  30
PENDING       72
REBOOTING 2
ERROR          3

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.