Team,
I found this script:
-------------
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 chi-fp01,chi-win8-01,chi-ex01 -HideComputerName |
Select * -ExcludeProperty RunspaceID
---------
Question - Above computer name inserted manually, i got 1000+ servers copied in CSV, could i have command modified to call for a CSV file as input for -computer variable.