April 2019
Intermediate to advanced
372 pages
12h 47m
English
Perform the following steps:
Get-Service | Group-Object -Property StatusGet-WinEvent -LogName System -MaxEvents 100 | Group-Object -Property LevelDisplayName
# Especially when working remotely on multiple systems, grouping can help# each background job and each remote execution will add a property called PSComputerName# which contains the machine the data originated on.$computers = Get-Content -Path .\MassiveComputerList.txtInvoke-Command -ComputerName $computers -ScriptBlock { Get-WinEvent -LogName System -MaxEvents 100} | # Grouping on PSComputerName, or as seen here a ...Read now
Unlock full access