How to display all items in a member from Powershell without “…”

前端 未结 2 406
灰色年华
灰色年华 2021-01-25 15:01

Run the following command:

Get-ADUser  -properties MemberOf | select MemberOf | Format-List *

results in something like

2条回答
  •  广开言路
    2021-01-25 15:33

    Adi Inbar is correct. Let me expand on this by saying if you're having issues, often get-member is very useful for figuring out what is going on.

    PS C:\> ipmo ActiveDirectory
    PS C:\> Get-ADUser testuser42 | select memberof | gm
    
    
       TypeName: Selected.Microsoft.ActiveDirectory.Management.ADUser
    
    Name        MemberType   Definition
    ----        ----------   ----------
    Equals      Method       bool Equals(System.Object obj)
    GetHashCode Method       int GetHashCode()
    GetType     Method       type GetType()
    ToString    Method       string ToString()
    memberof    NoteProperty Microsoft.ActiveDirectory.Management.ADPropertyValueCollection memberof=Microsoft.ActiveDir...
    

提交回复
热议问题