Command line &引用;用大写的“;Windows事件的节
是否有任何方法可以通过Powershell或命令提示符以文字查看事件的Command line &引用;用大写的“;Windows事件的节,command-line,powershell,remote-access,event-log,wmi,Command Line,Powershell,Remote Access,Event Log,Wmi,是否有任何方法可以通过Powershell或命令提示符以文字查看事件的部分 我试过了 psloglist-m 120-s-x Get EventLog application | ft TimeGenerated,@{label=“Data”;expression={[char[]][int[]]$\uuu.Data-join”“} 但是没有一个能提供所需的输出。我有一个又快又脏的,可以在我的笔记本电脑上使用: Get-EventLog application | % { $bytes
部分
我试过了
psloglist-m 120-s-x
Get EventLog application | ft TimeGenerated,@{label=“Data”;expression={[char[]][int[]]$\uuu.Data-join”“}
但是没有一个能提供所需的输出。我有一个又快又脏的,可以在我的笔记本电脑上使用:
Get-EventLog application | % {
$bytes = $_.Data
while ($bytes.Length % 4 -ne 0) {$bytes = $bytes + @(0)}
for ($i = 0; $i -lt $bytes.Length; $i += 4)
{
$curWord = [System.BitConverter]::ToUInt32($bytes, $i).ToString("X8")
Write-Output $curWord
}
Write-Output ""
}