我正在学习powershell,所以首先我要学习如何使用powershell的帮助系统。下面是命令“Get-EventLog”的帮助,
- 我们的意思是:职位?命名为
还有任何链接可以获取有关如何使用 powershell 提供的帮助系统的更多信息吗?
概要 获取本地或远程计算机上的事件日志或事件日志列表中的事件。
Syntax Get-EventLog [-LogName] <String> [[-InstanceId] <Int64[]>] [-After <DateTime>] [-AsBaseObject <SwitchParameter>] [-Before <DateTime>] [-ComputerName <String[]>] [-EntryType <String[]>] [-Index <Int32[]>] [-Message <String>] [-Newest <Int32>] [-Source <String[]>] [-UserName <String[]>] [<CommonParameters>] Get-EventLog [-AsString <SwitchParameter>] [-ComputerName <String[]>] [-List <SwitchParameter>] [<CommonParameters>] Parameters -After <DateTime> Gets only the events that occur after the specified date and time. Enter a DateTime object, such as the one returned by the Get-Date cmdlet. Required? false Position? named Default value Accept pipeline input? false Accept wildcard characters? false -InstanceId <Int64[]> Gets only events with the specified instance IDs. Required? false Position? 2 Default value Accept pipeline input? false Accept wildcard characters? false -LogName <String> Specifies the event log. Enter the log name (the value of the Log property; not the LogDisplayName) of one event log. Wildcard characters are not permitted. This parameter is required. Required? true Position? 1 Default value Accept pipeline input? false Accept wildcard characters? false