Я изучаю powershell, поэтому сначала я изучаю, как использовать справочную систему powershell. Ниже приведена справка для команды «Get-EventLog»,Использование справочной системы Powershell
- что мы подразумеваем под: Позиция?
Также есть ссылки, чтобы узнать больше о том, как использовать справочную систему от powershell?
Synopsis Получает события в журнале событий или списке журналов событий на локальном или удаленном компьютере.
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
'Обязательный?' - вопрос "Требуется ли этот параметр?" То же самое с 'Position?' "Какова позиция этого параметра?" 'named' означает, что вы должны указать параметр для его существования. –