powershell - table not showing output in new line -
i'm sure there simple solution, i'm stuck. output in members column this
{domain\domain admins, domain\joerod...
how can show
$member
value on each line?
function get-admingroups{ foreach($i in (get-content c:\users\joerod\desktop\remove_users.txt)){ #test if machine on network if (-not (test-connection -computername $i -count 1 -quiet -erroraction silentlycontinue)) { write-warning "$i unavalible" "`r" } else { (invoke-command { $members = net localgroup administrators | ? {$_ -and $_ -notmatch "command completed successfully"} | select -skip 4 new-object psobject -property @{ computername = $env:computername users=$members } } -computer $i -hidecomputername | select * -excludeproperty runspaceid ) } } } get-admingroups |ft
| try fl instead of ft. – kevin_ may 29 '14 @ 20:18 | ||
| the show groups want in table format – joerod may 29 '14 @ 20:27 |