Get-EventLog [-LogName] <String> [[-InstanceId] <Int64[]>] [-After <DateTime>] [-Before <DateTime>] [-ComputerName <String[]>] [-EntryType <String[]>] [-Index <Int32[]>] [-Message <String>] [-Newest <Int32>] [-Source <String[]>] [-UserName <String[]>] [<CommonPara...
| [-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>] [...
Get-EventLog [-LogName] <String> [-ComputerName <String[]>] [-Newest <Int32>] [-After <DateTime>] [-Before <DateTime>] [-UserName <String[]>] [[-InstanceId] <Int64[]>] [-Index <Int32[]>] [-EntryType <String[]>] [-Source <String[]>] [-Message <String>] [-AsBaseObject...
Get-EventLog [-LogName] <String> [-ComputerName <String[]>] [-Newest <Int32>] [-After <DateTime>] [-Before <DateTime>] [-UserName <String[]>] [[-InstanceId] <Int64[]>] [-Index <Int32[]>] [-EntryType <String[]>] [-Source <String[]>] [-Message <String>...
Get-EventLog [-AsString] [-ComputerName <string[]>] [-List] [<CommonParameters>] Get-EventLog [-LogName] <string> [[-InstanceId] <Int64[]>] [-After <DateTime>] [-AsBaseObject] [-Before <DateTime>] [-ComputerName <string[]>] [-EntryType <string[]>] [-Index <Int32[]>] [-...
Access Denied when adding computer to domain through powershell Access denied when importing a certificate Access Denied When Remote Connect Local Machine Access denied when running Get-WmiObject -Class Win32_SystemServices -ComputerName ServerName Access Denied when trying to set Trusted hosts for PS...
Int, Int32或Int64, 一个整数类型, 不包含小数 DateTime, 时间日期类型如果参数类型为数据集合, 可以使用, 隔开, 例如 Get-EventLog Security -computer...位置参数可以不用指定参数名, 比如Get-Help Get-EventLog 可以直接运行而不用指定 -Name 参数名...例如 Get-Command Get-EventLog | select -ExpandProper...
For example, suppose you’d like some basic information about the event logs on your computer. In that case, make sure you include the-listparameter when calling Get-EventLog: Get-EventLog -list In return, you’ll get back information similar to this: ...
Building a string from a Get-ADComputer output adds @{Name= to the computer name Bulk adding Active Directory users to a group by Display Name with PowerShell Bulk change of email addresses in Active Directory from a csv file Bulk Delete Computer from AD using list of partial names Bulk de...