简体   繁体   English

是否有“Out-Gridview”的替代方案来显示列表?

[英]is there an alternative to 'Out-Gridview" to display list?

I am trying to check Active directory group memberships snf display them in a list not a grid.我正在尝试检查 Active Directory 组成员身份 snf 将它们显示在列表中而不是网格中。 Looking for alternative to Out-Gridview寻找 Out-Gridview 的替代品

""Get-ADUser –Identity Username_Here -Properties Name, memberof | select memberof | Out-GridView -Title 'Group Memberships'""

The property MemberOf is an array.属性MemberOf是一个数组。 If you want to display its elements separated you have expand the array like this:如果你想分开显示它的元素,你可以像这样扩展数组:

Get-ADUser –Identity 'Username_Here' -Properties Name, MemberOf | 
    Select-Object -ExpandProperty MemberOf | 
        Out-GridView -Title 'Group Memberships'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM