模組: Microsoft.PowerShell.Management 取得本機電腦或遠端電腦上的事件記錄檔或事件記錄檔清單中的事件。 語法 PowerShell 複製 Get-EventLog [-LogName] <String> [-ComputerName <String[]>] [-Newest <Int32>] [-After <DateTime>] [-Before <
Get-EventLog [-LogName] <String> [[-InstanceId] <Int64[]>] [-After <DateTime>] [-Before <DateTime>] [-ComputerName <String[]>] [-EntryType <String[]>] [-Index <Int32[]>] [-Message <String>] [-Newest <Int32>] [-Source <String[]>] [-UserName <String[]>] [<CommonParam...
| [-LogName] <String> |设定事件类型 |Get-EventLog System | | [-ComputerName <String[]>] |设定电脑名 |Get-EventLog System -ComputerName "localhost"| | [-Newest <Int32>] |设定取得最新事件件数 |Get-EventLog System -Newest 5 | | [-After <DateTime>] |设定取得指定日期之后的事件|Get-...
powershell复制代码 Get-EventLog [-LogName] <string> [[-InstanceId] <int32[]>] [[-EntryType]<string[]>] [[-Message] <string>] [[-Source] <string[]>] [[-UserName]<string[]>] [[-ComputerName] <string[]>] [[-Newest] <int>] [[-After] <datetime>] [[-Before] <datetime>] [...
15,360 0 OverwriteAsNeeded 1,189 Windows PowerShell PS (7) >get-eventlog -list -asstring ADAM (instance1) Application Internet Explorer ODiag OSession Security System Windows PowerShell PS (10) >get-eventlog system -newest 5 Index Time Type Source EventID Message ...
用命令行操作监视安全事件日志——用Windows PowerShell的Get-EventLog工具轻松查看安全事件日志 WINDOWS命令行工具事件日志安全操作松程序许多人使用LogParser之类的命令行工具查看Windows的日志,现在有了另一个工具,就是Windows PowerShell中的Get-Event-Log命令行程序(cmdlet).Windows IT Pro Magazine: 国际中文版...
powershell-v3-module 报告 role-based-access-control server-health-and-performance 命令 Add-GlobalMonitoringOverride Add-ServerMonitoringOverride Get-AvailabilityReportOutage Get-EventLogLevel Get-GlobalMonitoringOverride Get-HealthReport Get-MonitoringItemHelp ...
1. Get-EventLog 仅限于所谓的“传统事件日志”,即: Application Security System HardwareEvents Internet Explore Key Management Service Windows PowerShell; 而Get-WinEvent则可以查询上百种日志,其中包括更加详细的“Applications and Services Logs”。Get-WinEvent是从Windows Vista才开始引入的,比Get-EventLog晚...
Applies To: Windows PowerShell 2.0 Gets the events in an event log, or a list of the event logs, on the local or remote computers. Syntax Copy Get-EventLog [-AsString] [-ComputerName <string[]>] [-List] [<CommonParameters>] Get-EventLog [-LogName] <string> [[-InstanceId] <Int64...
GetEventLogCommand.Source Property Reference Feedback Definition Namespace: Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Commands.Management.dll Package: Microsoft.PowerShell.5.1.ReferenceAssemblies v1.0.0 get or sets an array of Source C# 複製 public string[] Source { get; ...