更新日:2019/06/10
Get-Winevent : データが無効です。
発生場所 行:1 文字:1
+ Get-Winevent
+ ~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WinEvent], EventLogInvalidDataException
+ FullyQualifiedErrorId : データが無効です。,Microsoft.PowerShell.Commands.GetWinEventCommand
get-winevent the data is invalid
$array = @("system","application","Active Directory Web Services","DFS Replication","Directory Service","DNS Server","Internet Explorer","Windows PowerShell","Key Management Service","HardwareEvents")
foreach($a in $array){
Get-WinEvent $a | ?{$_.Level -eq 2 -or $_.Level -eq 3}| Format-Table -AutoSize -Wrap
Get-WinEvent | ?{$_.Level -eq 2 -or $_.Level -eq 3}| Format-Table -AutoSize -Wrap
}
[Powershell FAQ トップへ]
[FAQ CENTER トップ]