Skip to content

Get-Group output may not include all data #47

@RamblingCookieMonster

Description

@RamblingCookieMonster

Get-Group output can miss data if an array is long enough.

Expected Behavior

Get-Group

Name        : sysadmin
Description : Read and write access
Users       : {a, b, c, d, e, f, g}
Roles       : {1, 2, 3, 4, 5, 6}

Current Behavior

Get-Group

Name        : sysadmin
Description : Read and write access
Users       : {a, b, c, d...}
Roles       : {1, 2, 3, 4...}

Possible Solution

  • Set $FormatEnumerationLimit = -1 in the PoshBot environment. Generally, elllipsis are bad, if you have no recourse to further explore objects (i.e. with raw PowerShell), it seems like forcing this in the environment (perhaps with an option to override via config) would be acceptable
  • Get fancy and customize the output - this seems less 'built in' and could be delicate

Happy to help if you have any preferences in direction : )

Cheers!

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions