Hey guys I'm new to powershell and I some powershell that will tell me the the members of the local admin group on client PCs, the issue I have is the formatting of the members column needs to be extended, how do I do this?
This is my code
invoke-command {
$members = net localgroup administrators |
where {$_ -AND $_ -notmatch "command completed successfully"} |
select -skip 4
New-Object PSObject -Property @{
Computername = $env:COMPUTERNAME
Group = "Administrators"
Members=$members
}
} -computer client102,client54,client118 -HideComputerName |
Select * -ExcludeProperty RunspaceID
This what I see, how do I stop the ...