您要查找的值位于Properties属性中。 试试这个:
Get-WinEvent -FilterHashtable @{ logname = 'Security'; id = 4771 } | Select-Object TimeCreated, @{ Name='TargetUserName'; Expression={$_.Properties[0].value}}, @{ Name='IpPort'; Expression={$_.Properties[7].value}}, @{ Name='IpAddress'; Expression={$_.Properties[6].value -replace "::ffff:"}}