我想知道事件日志中属性[0]的值的名称

问题描述 投票:0回答:1

我想知道事件日志中属性[0]的值的名称:powershell代码

$log = Get-WinEvent -FilterHashtable @{
    Logname ='System'
    ProviderName = 'Microsoft-Windows-Power-Troubleshooter'
    id = 1
} -Maxevents 1

$log.Properties[0].value
'powershell'
What does properties[0] mean?
How do I know what the value is for?
I want to get a name for this property value.
I want to know what the value of properties[0] is for what name.
powershell event-log
1个回答
0
投票
$log | Get-Member
($log | Get-Member).Name
© www.soinside.com 2019 - 2024. All rights reserved.