Загрузка данных



$since = (Get-Date).AddMinutes(-5)

Get-WinEvent -FilterHashtable @{
    LogName = 'Microsoft-Windows-AppModel-Runtime/Admin'
    StartTime = $since
} -ErrorAction SilentlyContinue |
    Select-Object TimeCreated, Id, LevelDisplayName, Message |
    Format-List

Get-WinEvent -FilterHashtable @{
    LogName = 'Microsoft-Windows-TWinUI/Operational'
    StartTime = $since
} -ErrorAction SilentlyContinue |
    Select-Object TimeCreated, Id, LevelDisplayName, Message |
    Format-List