Excel - Daten zusammenfassen und anders darstellen
Hallo zusammen,
ich probiere schon ziemlich lange rum aber komme nicht zum Ergebnis. Bei mir geht es um ca 3000 Datensätze und ich brauche etwas automatisiertes. Gibt es eine funktion in Excel? Folgendes Szenario:
Gewünscht wäre folgende Ansicht:
Kann mir bitte einer helfen
Viele Grüße
ich probiere schon ziemlich lange rum aber komme nicht zum Ergebnis. Bei mir geht es um ca 3000 Datensätze und ich brauche etwas automatisiertes. Gibt es eine funktion in Excel? Folgendes Szenario:
SPALTE A | SPALTE B | SPALTE C |
Server | Services | |
A | DFS | |
A | AVS | |
A | RTE | |
A | IUK | |
B | DFS | |
B | AVS | |
B | RTE | |
C | DFS | |
C | AVS | |
C | RTE |
Gewünscht wäre folgende Ansicht:
SPALTE A | SPALTE B | SPALTE C | SPALTE D |
Server | Services | ||
A | DFS | AVS | RTE |
B | DFS | AVS | RTE |
C | DFS | AVS | RTE |
Kann mir bitte einer helfen
Viele Grüße
Please also mark the comments that contributed to the solution of the article
Content-Key: 495492
Url: https://administrator.de/contentid/495492
Printed on: April 24, 2024 at 23:04 o'clock
2 Comments
Latest comment
Warum das ganze jetzt in Excel, ich würde gleich das PS Skript das ich zu deiner vorherigen Frage gepostet habe anpassen, dann ist es gleich so wie du es haben willst.
Alternativ geht es in Excel natürlich automatisch auch mit ner Pivot-Tabelle.
$credlist = @{
'serverXYZ' = New-Object PSCredential('USERNAME',(ConvertTo-SecureString 'PASSWORD' -AsPlainText -Force))
}
Get-ADComputer -Filter "OperatingSystem -like '*Server*'" -Properties DnsHostName | ?{Test-Connection $_.DnsHostName -Quiet -Count 1} | %{
$parameters = @{
Class = 'Win32_Service'
ComputerName = $_.DnsHostName
}
if ($credlist.ContainsKey($_.DnsHostName)){
$parameters.Credential = $credlist[$_.DnsHostName]
}
gwmi @parameters | ?{$_.State -eq 'Running'}
} | select PSComputername,Name,Status | group PSComputername | %{"$($_.Name);$(($_.Group.Name | sort) -join ';')"} | out-file 'C:\test\Abfrage_AD_Srv_Services.csv'