我有一段代码
Get-XASession -AccountDisplayName DOM\UserA -ComputerName XenA1 | FT ClientAddress,SessionId,SessionName,ServerName,AccountName
输出
ClientAddress SessionId SessionName ServerName AccountName ------------- --------- ----------- ---------- ------- ---- 192.168.2.139 4 ICA-TCP#1 ServerA UserA 192.168.2.88 13 ICA-TCP#11 ServerB UserA 192.168.2.88 13 ICA-TCP#11 ServerB UserA 192.168.2.139 17 ICA-TCP#15 ServerA UserA
如何从此列表/输出中获取唯一ClientAddress的列表?那就是我想获得所有ClientAddress'
的列表答案 0 :(得分:0)
Get-XASession -AccountDisplayName DOM \ UserA -ComputerName XenA1 | Select-Object ClientAddress -Unique