Returns the DOSKey-style console command history (up arrow or F8).
Get-ConsoleHistory.ps1 -Id <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-ConsoleHistory.ps1 -Like <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-ConsoleHistory.ps1 -Match <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-ConsoleHistory.ps1 [-All] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-ConsoleHistory.ps1 |where CommandLine -like *readme*
Id CommandLine – ———– 30 gc .\README.md 56 gc .\README.md
Type: Int32
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Like
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Match
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.