Soldato
I have this script (server names and services redacted):
which works peferfectly fine. But how do I group the results say on MachineName?
I've tried
Code:
@{
'xxxxxnew' = 'Capxxxxx'
'xxxxxnew' = 'Capxxxxx'
'xxxxxnew' = 'Capxxxxx'
'xxxxxnew' = 'Capxxxxx'
}.GetEnumerator() | ForEach-Object {
Get-Service -ComputerName $_.Name -Name $_.Value
} | Select Name, MachineName, Status
which works peferfectly fine. But how do I group the results say on MachineName?
I've tried
- -groupby machinename
- -group-object machinename
- -group machinename